javascript back or rails way to go back a window?

disclaimer: i have not used acts_as_ferret

how about saving the last search as a session var, then have your
'back' button be a link to the search page, and pre-populate it with
the last search session var if it exists?