Prevent multiple reloads of a page

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?

Thanx

On Mon, Aug 25, 2008 at 10:51 PM, Jochen K.
[email protected] 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 L. [email protected]