Giter VIP home page Giter VIP logo

phase-3-active-record-translating-from-orm-to-ar's Introduction

Translating From ORMs to Active Record

Learning Goals

  • Understand how Active Record abstracts powerful methods for you
  • 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, and run learn test. 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!

phase-3-active-record-translating-from-orm-to-ar's People

Contributors

drakeltheryuujin avatar geluso avatar ihollander avatar lizbur10 avatar maxwellbenton avatar rrcobb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phase-3-active-record-translating-from-orm-to-ar's Issues

Add Extra End Note in Translating From ORMs to Active Record Lab

Canvas Link

https://learning.flatironschool.com/courses/4567/assignments/165858?module_item_id=357798

Concern

this lecture gave instruction to do the simple task of adding in ActiveRecord::Base to the Dog class, and thus passes all of the tests. At first I wasn't sure why until I mentioned it to my instructor. His response: "it’s illustrating that by inheriting from that module, all of those methods automatically will be defined for your Dog class".

Maybe adding in a similar note to the end of this lab would be useful to eliminate some confusion or hesitation about tests passing in a false positive reason.

Additional Context

No response

Suggested Changes

This illustrates that by inheriting from that module, all of many methods are automatically defined for your Dog class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.