Objectives:
- Understand how ActiveRecord abstracts powerful methods for you.
- Identify how to inherit your models.
This lab is meant to show you the power of ActiveRecord
. 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 ActiveRecord, 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!
Does this need an update?
Please open a GitHub issue or pull-request. Provide a detailed description that explains the issue you have found or the change you are proposing. Then "@" mention your instructor on the issue or pull-request, and send them a link via Connect.