Add params to redirect_to

How can I add incoming params, from a request.post, in a redirect_to?
Something like:

redirect_to :action => ‘new’, params[:user]

On 11 March 2011 15:13, Paul B. [email protected] wrote:

How can I add incoming params, from a request.post, in a redirect_to?
Something like:

redirect_to :action => ‘new’, params[:user]

You need to specify what it is that you want to set to params[:user],
so I guess you want something like
redirect_to :action => ‘new’, :user => params[:user]

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs