Selva Raj wrote: > 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.
Mmmm, try redirect_to {:action => :list}.update(params[:search]) -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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 rubyonrails-talk@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---