On 2/12/06, Eduardo Rocha <eduardorochabr@gmail.com>
wrote:> I want to be able to change the redirection url after I called
> redirect_to, is that possible?
>
> My specific use case is that I want to change the default redirection of
> "Login Engine" method signup, but I am seeing no other way then
> copy/past and change the parameters of redirect_to.
>
> This questions extends to render method as well, I want is to avoid
> DoubleRenderError exception.
Looking at the source of the method, you see it calls
response.redirect and response.redirected_to. You could try doing the
same and seeing what happens.
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/base.rb#L782
--
Rick Olson
http://techno-weenie.net