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