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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
shybe wrote:> 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?I have the exactly problem. if you discover, please posted here. I will do the same. Thanks -- Posted via http://www.ruby-forum.com/.
Penelope West wrote:> shybe wrote: >> Ok, I''m trying to have a form that when submitted redirects to a >> preview of the form data, >> with an option to edit,[...] It occurs to me that you could abuse ActiveRecord''s validations for this -- use a boolean virtual attribute whose presence is validated. It won''t be set on the first submission, so the validator will redirect to the form, at which point you can set the boolean... Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.