full current url with url_for()

Here's the documentation for url_for:
http://api.rubyonrails.org/classes/ActionController/Base.html#M000202

There's an "anchor" option. Also, for the c=123 in the query string, just
use :c => 123 in url_for. The full call would look like

url_for :controller => 'aaa', :action => 'bbb', :c => '123', :anchor => '45'

I thought he was trying to find his current url not generate
one...hence the request_uri method...?

You don't need to save the URL, just the parameters hash. My current(and first real) project does basically what they do in AWDWR:

session[:jumpto] = request.parameters

in a before_filter for the pages I want to be able to jump back to. Works great.

Jason

Eric Gross wrote: