I am new to Rails and use Rails 4. I started creating some forms to create / edit some models and added some validations that work fine on the server side.
I assumed that Rails will have something built-in to handle client-side validation - it turns out that it doesn't.
I searched on google and found "client_side_validation" which is no longer supported, and I generally don’t think it works in Rails 4.
There seems to be no obvious transition to the library for client-side Rails validation. So what is the “Rails way” to handle this? Drop yours? Duplicate logical client side using jQuery? Use html5 validation and go back to the server side if it’s not theirs? Or is there a library (preferably one that works with simple_form) that I can just install and use?
source
share