A simple gem to date range picker for twitter bootstrap. It's provide a dropdown menu from which a user can select a range of dates
Add this line to your application's Gemfile:
gem 'datejs-rails'
gem 'bootstrap-daterangepicker-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bootstrap-daterangepicker-rails
Import the JS
//= require date
//= require daterangepicker
And the CSS
*= require daterangepicker
Bind
$('#element').daterangepicker(options, callback);
Example and Demo
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request