How to use datepicker gem in rails
1. Include bootstrap-datepicker-rails in Gemfile
gem 'bootstrap-datepicker-rails'
2. Add this line to app/assets/stylesheets/application.css
*= require bootstrap-datepicker3
3. Add this line to app/assets/javascripts/application.js
//= require jquery3
//= require bootstrap-sprockets
//= require bootstrap-datepicker
No comments:
Post a Comment