I recently started working with Ruby (almost 2 months now) and Ruby on Rails (a little over 3 weeks). Working with Rails’ Active Record framework is one of my favorite things about Ruby on Rails. In this post, we will be looking at validations in Active Record, custom ones particularly. Here is a quick intro to Active Record before we move to the good stuff.
Active Record is one of the core gems that make up Ruby on Rails. It is the part of the framework that deals with databases.
It is an ORM (Object Relational Mapping) framework that lets…