datetimepicker-rails: Uncaught TypeError: Cannot read property 'dateFormat' of undefined

When doing

<%= f.input :start_date_time, :as => :datetime_picker %>

it throws this error. Not sure why. Any thoughts?

Using the latest of everything… 3.0.2+ and latest moment.js.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Thank you @wtfiwtz.

The solution for me was the same. Just add the below code in bootstrap-datetimepicker.js:

if (eData === undefined) {
    return;
}