[Rails] What is difference between render & redirect methods?

Tom Mornini
Wed, 22 Mar 2006 10:22:00 -0000

On Mar 22, 2006, at 1:53 AM, Prashant Tiwari wrote:
> Thest are two methods:-
> 1) redirect_to :action => ''list''

This causes an HTTP redirect to be returned to the browser,
which then fetches the new URL.

> 2) render :action => ''list''

This causes a ''server side'' redirect, and causes
the other action to be executed without the browser
knowing anything about the change.

> what is difference between these two methods??????

--
-- Tom Mornini