Redirect Back Error

explain redirect back error, when it comes

Prabu Ann wrote:

explain redirect back error, when it comes

What do you mean?

Do you get error when you use redirect_to?

On Mar 17, 2007, at 11:37, prabu wrote:

explain redirect back error, when it comes

Rails API (api.rubyonrails.org) for redirect_to says:

When using redirect_to :back, if there is no referrer,
RedirectBackError will be raised. You may specify some fallback
behavior for this case by rescueing RedirectBackError.

The Referer header is usually sent with a request by a browser if the
user goes to the page by clicking a link, and it contains the url of
the page with that link. There is no Referer header if the user just
types the address in the address bar, for example.

Yours sincerely,
Damian/Three-eyed Fish