Hi guys,
I'm working on additions to what I submitted in ticket #3049
[http://dev.rubyonrails.org/ticket/3049]. Someone suggested that
redirect_to :back should allow for an alternate redirect if no referer
is set.

I've looked at the code for a while and allowing for:
     redirect_to :back, :alternate => { OPTIONS HERE }
and such seems like it will produce fairly messy code in def redirect_to.

I do have a working implementation where you just place the alternate
redirect after the :back:
     redirect_to :back, :action => 'alternative_action'

Does this seem acceptable? Is the :alternate syntax needed? Can
someone think of a clean way to allow for the :alternate syntax given
redirect_to's prototype:
     redirect_to(options = {}, *parameters_for_method_reference))

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

Reply via email to