i have a 2 step form which contains 1 file_column field.
The second form is just “This is how your post will look” kind of form
and the user can click Edit (to take them back to form1) or Submit.
If the user clicks edit it takes them back to the first form with
fields populated. I have it working with all text fields, I just dont
know how to do this with file_column field (showing the image and file
selected). Storing the @params[:post][“image”] field in a session
crashes rails. So what i cant figure out is
- how do i reference the temporary image in my second form to show
how the post will look
- how do i re-populate the user’s choice in the first form if there
is an error, or the user wants to go back and edit from form2?