Happydatepicker
A simple but ready-made datepicker for rails. Based upon http://www.eyecon.ro/datepicker
Installation
Add this line to your application's Gemfile:
gem 'happydatepicker'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install happydatepicker
Usage
in application.js you need to require:
//=require datepicker //=require happydatepicker
in application.css you need to include *=require datepicker.css
From within your coffeescript file just do as follows:
new HappyDatePicker($("#your_element"))
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request