Skip to content
This repository has been archived by the owner on Jun 24, 2018. It is now read-only.

Latest commit

 

History

History
44 lines (23 loc) · 1.33 KB

README.md

File metadata and controls

44 lines (23 loc) · 1.33 KB

This repository is not maintained anymore, use this fork instead: https://github.com/cover/jquery-timepicker-rails

jQuery timepicker for Rails

jquery-timepicker packaged for the Rails 3.1+ asset pipeline. Check jquery-timepicker project home page.

Installation

Add this line to your application's Gemfile:

gem 'jquery-timepicker-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jquery-timepicker-rails

Usage

Add the following JavaScript file to app/assets/javascripts/application.js:

//= require jquery.timepicker.js

Add the following stylesheet file to app/assets/stylesheets/application.css:

*= require jquery.timepicker.css

Optionally, you can also use datepair.js:

//= require datepair.js

Most people will prefer to copy-paste this file in order to customize it.

jquery-timepicker depends on jQuery and bootstrap-datepicker or jQuery UI Datepicker.

License

jquery-timepicker is being developed by Jon Thornton and is under MIT license.

This gem is also licensed under MIT license.