Translating From ORMs to Active Record

Objectives:

  1. Understand how ActiveRecord abstracts powerful methods for you.
  2. Identify how to inherit your models.

Instructions

This lab is meant to show you the power of Active Record. Take a look at your test suite in spec/dog_spec.rb Right now there are eight tests that are all failing. In the past you had to write out each method individually to pass each test. Now with Active Record, the hard work is done for you! Run your tests and watch them fail. Then make sure your Dog class inherits from ActiveRecord::Base and watch them pass!

View Objectives: on Learn.co and start learning to code for free.