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 [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

