preview / edit form data in rails

Ok, I'm trying to have a form that when submitted redirects to a preview of the form data, with an option to edit, before finally commiting it to the database. I know this must involve sessions or cookies, Does anyone know how this can be done?