#rails-bootstrap-daterangepicker
The rails-bootstrap-daterangepicker
gem integrates the bootstrap-daterangepicker jQuery plugin with the Rails asset pipeline.
Usage
Install the rails-bootstrap-daterangepicker gem
Add rails-bootstrap-daterangepicker
to your Gemfile and run bundle install
:
gem "rails-bootstrap-daterangepicker"
Include rails-bootstrap-daterangepicker javascript assets
Add the following to your app/assets/javascripts/application.js
:
//= require moment
//= require bootstrap-daterangepicker
Include rails-bootstrap-daterangepicker stylesheet assets
Add to your app/assets/stylesheets/application.css
:
*= require bootstrap-daterangepicker-3
Or if you are using Twitter Boostrap 2 you need to require the following file instead:
*= require bootstrap-daterangepicker-2
Contributions
If you want to contribute, please:
- Fork the project.
- Make your feature addition or bug fix.
- Send me a pull request on Github.
License
rails-bootstrap-daterangepicker is released under the MIT License.