[Rails] How to generate an url from a hash {action=index, controller=analyses, locale=en_GB}

2011-05-25 Thread Erwin
currently I am keeping trace of locations before authentication using an application_controller action def store_location session[:return_to] = request.filtered_parameters # and not ...session[:return_to] = request.fullpath end so, I get session[:return_to] = {action=index,

[Rails] How to generate this URL

2010-02-27 Thread east
I'm stumped trying to generate an URL for a working route. I've this route definition: map.connect 'foo/:foo_id/propose_something/:zap_id', :controller = foo, :action = propose_something When I browse to this url: http://localhost:3000/foo/2/propose_something/5, my

Re: [Rails] How to generate this URL

2010-02-27 Thread Craig White
On Fri, 2010-02-26 at 17:44 -0800, east wrote: I'm stumped trying to generate an URL for a working route. I've this route definition: map.connect 'foo/:foo_id/propose_something/:zap_id', :controller = foo, :action = propose_something When I browse to this