GitHub User: charliemagee
I'm trying to add an image field to my survey. I can get the image to upload and to show on the Show page. But when I go back to the Edit view, there is no image and I still see the "No file chosen" text next to the Choose File button.
I have this line of code in my Show view:
<%= image_tag question.image_url(:thumb).to_s if question.image? %>
but if I try to put that into the _form view then I get an unknown variable or method error.
I've tried a couple of if statements but haven't gotten it to work.
Thanks to anyone who can help.