I have this field
<%= number_input f, :duration_minutes %>
and I would like to give it a default of 60. How can I do that?
The obvious guess of
<%= number_input f, :duration_minutes, default: 60 %>
didn't work.
Here it is:
<%= number_input f, :duration_minutes, value: 60 %>
1.4m articles
1.4m replys
5 comments
57.0k users