SimpleFormJasnyFileupload
This is a SimpleForm file upload input, formatted with Jasny Bootstrap Fileupload field, the file uploads are handled by Carrierwave.
How it works
Prerequisites
Install the following gems and assets.
Install
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.
Usage
<%= f.input :logo, as: :jasnyfile, label: false %>
I18n
en:
sfj_fileupload:
change_label: Change
select_label: Select file
remove_label: Remove
This project rocks and uses MIT-LICENSE.