This is a SimpleForm file upload input, formatted with Jasny Bootstrap Fileupload field, the file uploads are handled by Carrierwave.
Install the following gems and assets.
Add to your Gemfile the following:
gem 'simple_form_jasny_fileupload'
- Install bootstrap sass version.
- You have to add Jasny javascript and css files to your project.
<%= f.input :logo, as: :jasnyfile, label: false %>
en:
sfj_fileupload:
change_label: Change
select_label: Select file
remove_label: Remove
This project rocks and uses MIT-LICENSE.