Search code examples
ruby-on-railsrubygemsclient-side-validation

Issue with numericality validator


I am using gem client_side_validation in my rails 5.1 app. I am using a validation numericality on a field as following:

{greater_than: 0, less_than_or_equal_to: 2_147_483_647, only_integer: true}

Problem is that client side js allows user to add , separated format integer values but server side validation give error message.

Not A Number.


Solution

  • There is an issue in gem client side validation. for more details please see this link.