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

Norman Timmler
Wed, 22 Mar 2006 10:20:19 -0000

Am Mittwoch, den 22.03.2006, 10:53 +0100 schrieb Prashant
Tiwari:
> Hi,
> Thest are two methods:-
> 1) redirect_to :action => ''list''
> 2) render :action => ''list''
>
> what is difference between these two methods??????

redirect_to :action => ''list'' forces the clients browser to
request the
list action.

render :action => ''list'' will render the template
list.rhtml without
calling or redirecting to the list action.
--
Norman Timmler