On Jan 8, 2006, at 8:10 PM, Kevin Clark wrote:

I'm bumping this and asking for someone (anyone really) to give me
some feedback on whether this would be acceptable syntax for allowing
for fallback with redirect_to :back.
     redirect_to :back, :controller => 'alternative_controller',
:action =>'alt_action'
     redirect_to :back, 'http://alternative.url.test.host/blah'

I wonder if some other method would work better? redirect_to :back sounds so un-english.

Suggestions:
redirect_to :previous, :controller => 'alternative_controller', :action => 'alt_action' redirect_to :referring_url, :controller => 'alternative_controller', :action => 'alt_action'
redirect_back_otherwise :controller => ...

sound better to me.  I'd really like to see this in the core.

Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/


_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to