Displaying 1 result from an estimated 1 matches for "last_namesmithfirst_namejan".
Did you mean:
last_namesmithfirst_namejane
2007 Jul 24
2
Nested params and redirect_to
...n.
I have used the code:
redirect_to :action=>"list", :client_search=>{:first_name =>
"jane",:last_name=>"smith"}
This does not work.. the parameters appear as:
Parameters: {"action"=>"list",
"client_search"=>"last_namesmithfirst_namejane",
"controller"=>"client"}
ie it is not nesting the "client_search" hash and I get the following
error when trying to update the attributes on the client_search table
using these params:
NoMethodError (undefined method `stringify_keys!'' for
"last...