Answer the question
In order to leave comments, you need to log in
Why doesn't jQuery UI Datepicker open the first time?
in a RoR application (Rails 4.0.3), does the calendar only appear if the page is refreshed again? how to fix?
application.js //= require jquery.ui.datepicker
application.css.scss *= require jquery.ui.datepicker
posts.js
jQuery ->
$('#pticket_starts_at').datepicker
dateFormat: 'yy-mm-dd'
Answer the question
In order to leave comments, you need to log in
As I read in one more or less authoritative book:
4 rails are wonderful. The first thing to do is remove the gem 'turbolinks' line
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question