= simple_form_for @time_slot, url: booking_path, method: :patch do |f|
= f.input :start_time, :as => :datetime, :minute_step => 30, :include_seconds => true, :discard_year => true, :datetime_separator => ' — ', :time_separator => ' - '
= f.input :id, as: :hidden
= f.submit "Book this slot", class: 'btn'
Last active
August 29, 2015 14:01
-
-
Save qcam/d3d108ee91c018a06950 to your computer and use it in GitHub Desktop.
Configure datetime options
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment