In my rails app, I use Carrierwave to upload files to Cloudinary. I also use Simple form to render forms in views. I am trying to upload my files to specific folders in cloudinary.
In the uploader.rb file, this works well
return "my_folder/" + model.full_name
But what I want is to specify the folder parameter in the views using simple form. So i tried something like this,
<%= f.input :resume, :folder => "talents/", :public_id => "my_name" %>
The files get uploaded to Cloudinary but not the folder. Is it possible to pass the folder parameter successfully to simple form in the views?
Please sign in to leave a comment.