input field for time code example
Example 1: input datetime
<input type="datetime-local">
Example 2: simple form time input
<%= f.input :nap, default: Time.parse('8:00') %>
<input type="datetime-local">
<%= f.input :nap, default: Time.parse('8:00') %>