aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/CHANGELOG2
-rwxr-xr-xactionpack/lib/action_controller/cgi_ext/cgi_methods.rb8
2 files changed, 6 insertions, 4 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index c34b2f2cb4..1fb95347d2 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,6 +1,6 @@
*SVN*
-* Add descriptive messages to the exceptions thrown by cgi_methods. Closes #6091. [Nicholas Seckar]
+* Add descriptive messages to the exceptions thrown by cgi_methods. #6091, #6103 [Nicholas Seckar, Bob Silva]
* Update JavaScriptGenerator#show/hide/toggle/remove to new Prototype syntax for multiple ids, #6068 [petermichaux@gmail.com]
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
index 16baa5abda..3c2a1abbb6 100755
--- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
+++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
@@ -192,9 +192,11 @@ class CGIMethods #:nodoc:
end
def type_conflict!(klass, value)
- raise TypeError, "Conflicting types for parameter containers
- Expected an instance of #{klass}, but found found one of #{value.class}"
+ raise TypeError,
+ "Conflicting types for parameter containers. " +
+ "Expected an instance of #{klass}, but found an instance of #{value.class}. " +
+ "This can be caused by passing Array and Hash based paramters qs[]=value&qs[key]=value. "
end
end
-end \ No newline at end of file
+end