I am trying to use the http://trentrichardson.com/examples/timepicker/ plugin.
In my gemfile, I have (and I made sure the gem is installed):
gem 'jquery-rails'
I downloaded jquery-ui-timepicker-addon.js into the app/assets/javascripts directory
I added the CSS section to app/assets/stylesheets/application.css.erb
I added the following to app/assets/javascript/application.js:
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require jquery-ui-timepicker-addon
$(
function() {
$('.date_with_hours_and_minutes').datetimepicker(
{dateFormat: 'yy-mm-dd hh:mm'} )
}
);
In my view, I have:
<%= f.text_field :start_date_time, id: "date_with_hours_and_minutes" %>
I am not getting any errors, but I am not seeing the datetime picker either. Any ideas?
$('.date_with_hours_and_minutes')..datetimepickera typo in your question or in your code?