I have a Photo model in my application that consists of a table field called: image_url in String format. I'd like to be able to upload an image using the file field ruby tag to a generated scaffold. A problem I am getting is that the beginning tag is <%= form_for(@photo) do |f| %>. It is giving me some kind of merge error in my controller, I believe, that is preventing a function that I tried to rig together in my Photo controller.
I'd be more than happy to replace any of my code with something that WORKS. I just need to get something up and running as of right now, then I will probably look at using an upload plugin to help satisfy what I need.
Thank you for any help that you can give.
Start Free Trial