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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request