x
1
2
3
<form action="/models" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="hxGFmaD1W1fJuhjARo3BaKmH0J1j8PmWTrgFyshTG4V0NGV56F7Ax1pcoXYrwRxtv9-PpjFW54AhzKJlGuWJ6g" autocomplete="off" />
<input type="datetime-local" name="model[attribute]" id="model_attribute" />
</form>
1
2
3
<%= form_with model: model do |form| %>
<%= form.datetime_local_field :attribute %>
<% end %>