time input in html code example
Example 1: time picker html
<input type="time">
Example 2: simple form time input
<%= f.input :nap, default: Time.parse('8:00') %>
<input type="time">
<%= f.input :nap, default: Time.parse('8:00') %>