How to pass form errors in session or flash? [Rails 2.3.5]
- by yuval
I have a create action for a form that potentially generates errors (i.e. first name is missing) and then redirects.
The problem is, that when the redirect happens those form errors get lost.
How could I pass those form errors in a session to be displayed back in the original form (which should still be filled out with the previous details, as in the original error_messages behavior)?
Thanks!