redirect_to :previous reads very well.

On 1/8/06, Duane Johnson <[EMAIL PROTECTED]> wrote:
>
> 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
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>


--
Tobi
http://jadedpixel.com    - modern e-commerce software
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to