malcoauri
malcoauri

Reputation: 12179

Datetime fields in Rails 4

I use the following code:

= f.datetime_field :start_time

But my field looks like a commond text field, without date and time pickers. How can I fix it? My layout uses HTML5 for Doctype. Thanks in advance.

Upvotes: 0

Views: 51

Answers (1)

Vucko
Vucko

Reputation: 20834

<input type="datetime"> is only supported in opera and partly -webkit browsers - MDN and caniuse.

Use some datepicker plugin, like JQuery UI datepicker.

Or bootstrap-datetimepicker.

Upvotes: 1

Related Questions