- Published
- Author
- Satya
while using
In order to allow the floating point value we can add
#CU6U0R822 #form-tag-helper
form.number_field in rails if we enter a floating point value eg: 23.45 then browser default validation kicks in syaing: Please enter a valid value. The two nearest valid values are 23 & 24 .In order to allow the floating point value we can add
form.number_field, step: "0.01" . Then we can add upto two decimal point vlaue.#CU6U0R822 #form-tag-helper