On Feb 8, 2:04 pm, Ralph Shnelvar <[email protected]> wrote:
> Ok, I think I understand why RoR will flag an attempt double render in
> an action.
>
> What I don't understand is the philosophy of render and redirect_to.
>
> Specifically, why isn't a return implicit in both those methods?

Unless I've completely missed something, there isn't a straightforward
way to issue a nonlocal return in Ruby - which you'd need in order to
make calling 'render' return from the controller action. One could, of
course, hack up something involving raise/rescue, but that's going to
be messy.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to