I’m currently trying to create a site using RoR where you can upload pics and have them load on the bottom right after you upload them without going to a new page. Could someone guide me on how I would do this?
Would it be possible? Since uploading would require a form, which is more of a “new” controller action, while displaying the uploaded images are more of a “show” controller action.
You would have to do that with ajax. Have a look at this article on how to create remote forms in rails 3.
To show the image that was uploaded, you’d have to:
To explain all the details of this would be a bit too much for one answer, but I think that’s basically the skeleton of what you’d have to do.