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

Xavier Noria
Wed, 22 Mar 2006 17:23:35 -0000

On Mar 22, 2006, at 18:21, Tom Mornini wrote:

>> On Mar 22, 2006, at 11:21, Tom Mornini wrote:
>>
>>> This causes a ''server side'' redirect, and causes
>>> the other action to be executed without the browser
>>> knowing anything about the change.
>
> On Mar 22, 2006, at 2:41 AM, Xavier Noria wrote:
>
>> Almost. The action is not executed, only the corresponding
>> template list.rhtml is rendered as if the call was
>
> On Mar 22, 2006, at 2:37 AM, Norman Timmler wrote:
>
>> That''s wrong. The action never gets called. Only the template
for
>> that
>> action is rendered.
>>
>> http://api.rubyonrails.com/classes/ActionController/Base.html#M000178
>
> Thanks for the corrections, Xavier and Norman!
>
> I hate it when I do that! :-)

Heh, nevermind, I learnt it the hard way a while back :-).

-- fxn