Reputation: 117
I am doing a project which allows user to upload image.
My problem is how can i save the information of image in database MySQL like:
image_path;
image_type;
image_desc:
Upvotes: 0
Views: 1528
Reputation: 76
You can use the gem https://github.com/thoughtbot/paperclip. The image_desc you can to save independently.
Image.create(:image => params[:file], :image_desc => params[:desc])
Upvotes: 0