On Mon, Aug 25, 2008 at 10:51 PM, Jochen Kaechelin
<gissmoh-mq+tHXhMx+cPyMaTEpOvjQ@public.gmane.org>
wrote:>
> The User will get a static page with the info that we just send a
> confirmation email.
>
> something like http://www.home.de/confirmation_email_send
>
> When the user now hits reload I want him to be automatically redirect
> to root_path.
>
> Whats the recommended way to do this?
It seems to be a strange way of doing things, but maybe you can have
it with something like
def confirmation
if flash[:confirmation_already_sended]
redirect_to root_path
else
flash[:confirmation_already_sended] = true
end
end
In your controller for this action.
--
Gabriel Laskar <bibi.skuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---