Forum: Ruby on Rails Redirect Back Error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
15dc7f342186f098d2987a61892c5431?d=identicon&s=25 Prabu Ann (prabu82)
on 2007-03-17 09:38
(Received via mailing list)
explain redirect back error, when it comes
E3513c4edd6810bb4b9914b58da2a2c3?d=identicon&s=25 Jamal Soueidan (jamal)
on 2007-03-17 11:03
Prabu Ann wrote:
> explain redirect back error, when it comes

What do you mean?

Do you get error when you use redirect_to?
2f24c382600d9fd71085a74251fd5a39?d=identicon&s=25 Damian Terentyev (Guest)
on 2007-03-18 08:58
(Received via mailing list)
On Mar 17, 2007, at 11:37, prabu wrote:

> explain redirect back error, when it comes

Rails API ( 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
This topic is locked and can not be replied to.