Giter Site home page Giter Site logo

m2m-template's Introduction

Installation

Fork and clone this repo from Github. cd into the main directory using your console and run bundle install to install all Gem dependencies.

Writing Code

You should write all your code for your domains in file in the app/models directory. You can create a file for each model in your domain.

Testing Your Code

We've provided you with a console that you can use to test your code. Write all your code in the app folder so that it is loaded into the environment. To enter a console session, run ruby tools/console.rb. You'll be able to test out the methods that you write here.

Instructions

  • Create three models comprising a many-to-many relationship. Choose a domain that is of interest to you and your partner--have fun with it! Do you have a shared hobby? Favorite TV show or movie?

  • Before you type anything:

    • Sketch out your domain, including listing any foreign keys
    • List the methods you will build. Aim for about 4-5 per model
      • at least one class method besides .all
      • we can help brainstorm if you get stuck--just ask
  • TEST YOUR CODE!!! Code a little, test a little. You should never have to wonder whether or not something works. You should KNOW and be able to PROVE it to someone else (can be as simple as running the method in a pry / console and verifying it does what you want it to do)

  • If you finish early, think about adding more methods or an additional related model! We can help come up with ideas for that as well.

Run on Repl.it

m2m-template's People

Contributors

raaynaldo avatar paulnicholsen27 avatar

Watchers

James Cloos avatar

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.