Appearance
The number field renders a input[type="number"] element.
number
input[type="number"]
field :age, as: :number
min
Set the min attribute.
nil
Any number.
max
Set the max attribute.
step
Set the step attribute.
field :age, as: :number, min: 0, max: 120, step: 5