Simple form input type
Simplest method:
f.input :whatever, as: :numeric
The following should work
f.input :amount, input_html: { type: 'number' }
An even cleaner way would be:
f.input :amount, as: :numeric
Hope it helps !
Simplest method:
f.input :whatever, as: :numeric
The following should work
f.input :amount, input_html: { type: 'number' }
An even cleaner way would be:
f.input :amount, as: :numeric
Hope it helps !