On Tue, Nov 29, 2005, Don Park wrote:
> A method on a controller uses the redirect_to :back (new in 0.14.x).
> It works fine in normal use but a functional test that calls this
> method will recurse infinitely. I assume that the :back destination in
> the test case points to itself.
> 
> Im not seeing an elegant way to keep this from happening. If you have
> an idea or know of something that should be done in this case, please
> let me know.

Huh, I just came across a post in Kevin Clark's blog (glu.ttono.us)
about this.  Apparently you need to set @request.env['HTTP_REFERER'] to
get that redirect to do the right thing.

He has a patch that resolves it, and it's been filed.

Post is at http://glu.ttono.us/articles/2005/11/28/redirection-goodness

Ben
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby

Reply via email to