bootstrap-timepicker-rails
Ruby
Pull request Compare This branch is 1 commit ahead, 21 commits behind tispratik:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
vendor/assets
.gitignore
Gemfile
README.md
Rakefile
bootstrap-timepicker-rails.gemspec

README.md

Bootstrap Timepicker for Rails

This is the gemified version of https://github.com/jdewit/bootstrap-timepicker

bootstrap-timepicker-rails project integrates Timepicker with Rails 3 assets pipeline.

Rails > 3.1

Include bootstrap-timepicker-rails in Gemfile;

gem 'bootstrap-timepicker-rails'

or you can install from latest build;

gem 'bootstrap-timepicker-rails', :require => 'bootstrap-timepicker-rails',
                              :git => 'git://github.com/tispratik/bootstrap-timepicker-rails.git'

and run bundle install.

Configuration

Add this line to app/assets/stylesheets/application.css

 *= require bootstrap-timepicker

Add this line to app/assets/javascripts/application.js

//= require bootstrap-timepicker

Using bootstrap-timepicker-rails

Just call timepicker() with any selector.

$('.timepicker').timepicker()