Hi,
I am getting some error which I am clue less. I try to pass more than
one parameter with redirect_to, For example,
My params are...
search => {"name"=>"", "bus_group"=>"1", "region"=>"", "unapproved"=>"",
"tech_owner"=>""}
And I try to give.
redirect_to params[:search].merge! (:action => 'list')
After executing this if I see in log file its showing like
{"bus_group"=>nil, "name"=>"", "amp;region"=>nil, "amp;tech_owner"=>nil,
"region"=>"", "amp"=>"", "action"=>"list", "amp;name"=>nil,
"controller"=>"tech_projects", "amp;unapproved"=>nil, "unapproved"=>"",
"tech_owner"=>""}
I am confused why this "amp;" generally "&" will be parameter separator
but one parameter itself called "amp;".also every params are available
twice.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---