how Uploader produces errors regarding the column in which it should store the path
An Image model has a 1:1 association with an Organization model. In the organizations controller, the
My question is how to create an Image instance for the uploaded file? The path to the stored file should be stored in the column
You don’t have to call the uploader yourself. Carrierwave comes with a mechanism to do the uploading and storing in AR models for you:
Then you can do
Please visit the carrierwave README for more extensive examples.