
Add support for redirect_to :back
Reported by Pirkka Hartikainen | April 29th, 2008 @ 09:54 AM
Sorry if this has been fixed in the latest version!
Requests made via Webrat lead to this error when using redirect_to :back in a controller:
Status: 500 Internal Server Error
No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this is a
test, make sure to specify request.env["HTTP_REFERER"].
I believe this could be avoided by something like
request.env['HTTP_REFERER'] = response.request.url
in request_page method... but I haven't yet been able to make it work.
Comments and changes to this ticket
-
Bryan Helmkamp October 21st, 2008 @ 11:36 PM
- State changed from new to resolved
This should work with the code in my master branch. Please reopen if you run into any problems with that.
Thanks.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.