On 8/17/06, Gilles <gilllllles@yahoo.com> wrote:>
> Is there a way in RoR to automatically redirect to a different page
> through some method within the view, not the controller?
>
> -Gilles
You''d have to do it with JavaScript, either by hand or with RJS. You
can''t
issue a redirect via redirect_to since that''s an HTTP header thing, and
once
you''re in the view you have already sent the headers (I think). Google
for
"javascript window.location" for more details.
Oh crap. Here comes another cease and desist.
--
Jim Kane
fastjames@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060818/692329a0/attachment.html