This is a popup or flat DHTML calendar suitable for selecting date/time.
Add this line to your application's Gemfile:
gem 'jscal2-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jscal2-rails
add to css file
/*
*= require jscal2/jscal2
*/
add to js file
//= require jscal2/jscal2
//= require jscal2/lang/cn
英文用这个
//= require jscal2/lang/en
- Fork it ( https://github.com/growcn/jscal2-rails/fork )
- 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 a new Pull Request