Skip to content

LuongTheVinh/AppDev-Summer15-MustSeeMoviesGoldenSeven

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Must See Movies Golden Seven

In the 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)

Setup

  • Create the three models and databases table using rails generate model .... Crud with Ruby cheatsheet
  • 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).

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.

Hints

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 85.9%
  • HTML 12.9%
  • Other 1.2%