Ruby on Rails: How to create a "recent_search_path" helper method?
I have implemented a search feature of my application. After submitting a search term, you are redirected to a url that looks something like this:

    http://localhost:3000/search?utf8=✓&search=term

I want to be able to store this in the session and link to it later:

    <%= link_to 'Back', recent_search_path %>

How might I achieve this?
Ruby on Rails: How to create a "recent_search_path" helper method?
===

I have implemented a search feature of my application. After submitting a search term, you are redirected to a url that looks something like this:

    http://localhost:3000/search?utf8=✓&search=term

I want to be able to store this in the session and link to it later:

    <%= link_to 'Back', recent_search_path %>

How might I achieve this?