I have this code
<%= form_for(:img, url: {action: \"postodb\"}) do |f| %>
image here!
<%= f.submit \"Se
First what your should to do is read a docs: http://www.w3schools.com/Tags/att_input_type.asp
image - Defines an image as the submit button.
Second what your should learn to read is logs. At screenshot you have section with params, and there is no data_uri
key.
And finaly use the <input type='file' ... />
for upload. If you want beauty async upload with preview, you should look on jquery-file-upload
gem instead.
P.S.: type='image'
is a submit button with image.
Using carrierwave gem for loading images.