You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following validation in my model:
validates :price, numericality: { greater_than_or_equal_to: 0.01 }
Entering in price -5.0 when I submit the form, it fails and it shows me the error message in the view, but when I change the validation to this (it must do the same)
validates_numericality_of :price, greather_than_or_equal_to: 0.01
Doesn't validates and it gets created/saved correctly
System configuration
Rails version: 5.0.0.1
Ruby version: 2.3.1
The text was updated successfully, but these errors were encountered:
Steps to reproduce
I have the following validation in my model:
validates :price, numericality: { greater_than_or_equal_to: 0.01 }
Entering in price -5.0 when I submit the form, it fails and it shows me the error message in the view, but when I change the validation to this (it must do the same)
validates_numericality_of :price, greather_than_or_equal_to: 0.01
Doesn't validates and it gets created/saved correctly
System configuration
Rails version: 5.0.0.1
Ruby version: 2.3.1
The text was updated successfully, but these errors were encountered: