Tag: how to run ruby on rails web application

Validations in Ruby

Active Record allows you to check the state of a model before it is written to the database. There are several methods that can be used to check your models and validate that an attribute’s value is non-empty, unique (not existing in the database), conforms to a certain format, and many more. Validation is a […]