GithubHelp home page GithubHelp logo

ruby-oo-practice-has-many-through-template-nyc01-seng-ft-051120's Introduction

Has-Many-Through

This is boilerplate code for a has-many-through relationship. Make sure you fork the file to your repo!

You can define your models in the three files in folder app/models and then, test your code in the tools/console.rb file.

To run your code, type ruby tools/console.rb from the root directory in your terminal.

Here are some potential models you might use (The order of the models are random):

  • Doctor, Patient, Appointment
  • Artist, Genre, Song
  • Recipe, Ingredient, Quantity
  • Classroom, Student, Teacher
  • Subscription, Magazine, Person
  • Club, Student, Membership

When creating the models, be sure to include rich instance variables, so you can do more with the models! For instance, a doctor model might have things like name, field (field of study), and cost while a patient model might have things like name, ailments and income. In doing this, you might want to write methods where a patient can find the doctors (s)he can afford and/or a doctor appropriate for his/her pain.

There are no restrictions and no tests, so it's up to you to decide how to implement this!

ruby-oo-practice-has-many-through-template-nyc01-seng-ft-051120's People

Contributors

thuyanduong-flatiron avatar hyeokjungkim avatar notnotdrew avatar maxwellbenton avatar

Watchers

 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.