[Solved] Twitter bootstrap datepicker is not working in rails


Add //= require_self to application.js

this includes its own file contents too.
This has to be done explicitly.

also keep the application.js formatted

//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require bootstrap-datepicker
//= require picker
//= require_tree .
//= require_self

$(function() {
   $('#dp5').datepicker()
 });

// Do not keep bank spaces between included files.

I would suggest to create a new js file and add contents in it and then include it in application.js

keep application.js as a index file

6

solved Twitter bootstrap datepicker is not working in rails