GithubHelp home page GithubHelp logo

msm_golden_seven's Introduction

Must See Movies Golden Seven

In this application, users will need to Create, Read, Update, and Delete the following resources:

Director

  • name (string)
  • bio (text)
  • dob (string)
  • image_url (string)

Actor

  • name (string)
  • bio (text)
  • dob (string)
  • image_url (string)

Movie

  • title (string)
  • year (integer)
  • duration (integer)
  • description (text)
  • image_url (string)

You will ultimately build something similar to this movie database, but without any styling, and with only three tables.

Use the detailed instructions in the Photogram Golden Seven repository as a guide.

Setup

  • First fork, and then clone.

  • Create the three models and databases table using rails generate model ... using the Crud with Ruby Cheatsheet. For example,

     rails g model director name:string bio:text dob:string image_url:string
    
  • Add a few rows to each table through Rails Console. Or, alternatively, you can run rake db:seed from the command line, which will pre-populate ten rows in each table (I wrote a script to save you some typing). (You need to create all three tables with exactly the column names above in order for this to work.)

READ

DELETE

CREATE

  • Build a way to see a blank form to add a new row, e.g., by visiting http://localhost:3000/directors/new_form
  • Build the complementary action to receive inputs from that form and actually save them into a new row.

UPDATE

  • Build a way to see a pre-populated form to edit an existing row, e.g., by visiting http://localhost:3000/directors/4/edit_form
  • Build the complementary action to receive inputs from that form and actually update the existing row with them.

Rinse and repeat for the other two tables. Good luck, ask lots of questions!

msm_golden_seven's People

Contributors

raghubetina avatar faraz-hussain avatar

Watchers

James Cloos avatar  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.