I have a form in Ruby on Rails that uses methods like f.label, f.textarea
I want to also use the same methods for f.select_datetime, but it doesn't work. How can I get a select_datetime input to work with the normal form methods?
<tr>
<td><%= f.label :price %>:</td>
<td>
<%= f.text_field :price, :placeholder => "price (decimal format, e.g. 12.99 or 19)" %>
</td>
</tr>
<tr>
<td><%= f.label :ends_at %>:</td>
<td>
<%= select_datetime Time.now + 4.days %>
</td>
</tr>