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

Changeset 5070

Show
Ignore:
Timestamp:
09/08/06 07:25:14 (2 years ago)
Author:
bitsweat
Message:

Update descriptive messages for exceptions thrown by cgi_methods. Closes #6103.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5066 r5070  
    11*SVN* 
    22 
    3 * Add descriptive messages to the exceptions thrown by cgi_methods. Closes #6091. [Nicholas Seckar
     3* Add descriptive messages to the exceptions thrown by cgi_methods. #6091, #6103 [Nicholas Seckar, Bob Silva
    44 
    55* Update JavaScriptGenerator#show/hide/toggle/remove to new Prototype syntax for multiple ids,  #6068 [petermichaux@gmail.com] 
  • trunk/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb

    r5066 r5070  
    193193       
    194194      def type_conflict!(klass, value) 
    195         raise TypeError, "Conflicting types for parameter containers 
    196           Expected an instance of #{klass}, but found found one of #{value.class}" 
     195        raise TypeError,  
     196          "Conflicting types for parameter containers. " + 
     197          "Expected an instance of #{klass}, but found an instance of #{value.class}. " + 
     198          "This can be caused by passing Array and Hash based paramters qs[]=value&qs[key]=value. " 
    197199      end 
    198200