Is there a way in RoR to automatically redirect to a different page
through some method within the view, not the controller?
-Gilles
Is there a way in RoR to automatically redirect to a different page
through some method within the view, not the controller?
-Gilles
use a javascript redirect
On 8/17/06, Gilles [email protected] 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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs