Everyday Active Record Episode 3: Validating Models

Posted in Development, Frameworks, Databases on July 11, 2008


Everyday Active Record Episode 3: Validating Models

Validations are the key to preserving data integrity in Rails. We’ll use both built-in and custom validations to make sure movie reviews are submitted with valid data. You’ll learn how to:

  • use built-in validation methods
  • handle form errors conveniently
  • add custom validations using the validate method
  • validate across multiple database columns
  • make validations conditional based on authentication
  • handle validations across multiple models that are associated

Watch Video

Tags: Ruby, Ruby On Rails, Frameworks, Databases, ActiveRecord, ORM, The Pragmatic Programmers, Everyday Active Record