Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7962: display_unparseable_value_and_correct_spelling_error_on_cgi_type_conflict.diff

File display_unparseable_value_and_correct_spelling_error_on_cgi_type_conflict.diff, 0.7 kB (added by spicycode, 1 year ago)
  • actionpack/lib/action_controller/cgi_ext/cgi_methods.rb

    old new  
    204204        raise TypeError,  
    205205          "Conflicting types for parameter containers. " + 
    206206          "Expected an instance of #{klass}, but found an instance of #{value.class}. " + 
    207           "This can be caused by passing Array and Hash based paramters qs[]=value&qs[key]=value. " 
     207          "This can be caused by passing Array and Hash based parameters qs[]=value&qs[key]=value. " +  
     208          "The parameters received were #{value}." 
    208209      end 
    209210       
    210211    end