Validation is one of the core features which rails provides. There are plenty of inbuilt validation helpers are there which helps validation our form inputs or user attributes. But in few cases, if these inbuilt validation helper doesn’t serve our purpose, rails provide support for writing our own custom validations as well. There are many ways to write custom validations. Few of them are:
Validate with custom method
|
|
Validate with ActiveModel validation
|
|
Validate with PORO class
|
|