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?
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
Penelope W. 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]