Difference between redirect_to and render :action

can anyone tell me difference between the above two plz and when to use
them.

On 6 October 2006 17:30, Siddharth Akkinepalli wrote:

can anyone tell me difference between the above two plz and when to use
them.
Redirect to produces a HTTP response which instructs browser to open
another
page. This means that context is lost during redirect (e.g. parameters
posted
and such). render :action just takes template with action name and
renders
it.
It was discussed here that name of :action parameter is a bit confusing.

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