Why i am not getting datetimepicker in rails 4 -


hi want give date , time input in rails. used datetimepicker in app. here link had followed use datetimepicker. not able see datetimepicker in input field. mistake? struggling? please advise me if have ideas

https://github.com/lubieniebieski/bootstrap-datetimepicker-rails

here application.js

//= require jquery //= require jquery_ujs //= require turbolinks //= require switchery //= require moment //= require bootstrap-datetimepicker //= require_tree . 

here application.css

 *= require_tree .  *= require_self  *= require switchery  *= require bootstrap-datetimepicker 

here form.html

<tr>     <td class="col1"><label for="exam_date">exam date</label></td>         <td class="col2">             <%= text_field_tag :test_date%>         </td> </tr> 

here js

$(function() {     $('#test_date').datetimepicker();   }); 

please me out problem. tried lot not find struggling. might repeated. refered before posting. pls dont downvoting. in advance.

most bootstrap-datetimepicker plugin has dependency on bootstrap.js.

update application.js

//= require jquery //= require jquery_ujs //= require turbolinks //= require switchery //= require moment //= require bootstrap //= require bootstrap-datetimepicker //= require_tree . 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -