This application has 4 database-backed web CRUD resources: directors, movies, roles, and actors.
As usual, each resource has 7 "golden" actions that allow users to interact with it:
- new_form
- create_row
- index
- show
- edit_form
- update_row
- destroy
There are bugs in most of the 28 actions required to CRUD our 4 resources. Your job is to debug them all until you can create, read, update, and delete each of directors, movies, roles, and actors without running into any issues.
Here is a fully functional version of the app, for your reference.
https://resource-practice.herokuapp.com/
Make yours work like it. Your local app is using a dark Bootswatch, and the reference app is using a light Bootswatch; don't get confused between the tabs as you try to check your work.
Use the detailed README of the Photogram Golden Seven project as a reference.
- First fork, and then clone.
cd
to the root folder of the app.bundle install
rake db:migrate
(To create the four tables on your machine; I have already written the instructions to do so.)rake db:seed
(to pre-populate your tables with some data, so we can get straight to work. This step may take a while on Windows machines. You can open a new Command Line window to continue working while it runs.)rails server
Navigate to
You should see a list of movies. The Movies#index
action is functional, and I have set it to be the root URL.
From here, click through the app and debug. Try adding a new movie, updating a movie, looking at the details of a movie, and deleting a movie.
Sometimes you will get an error message; sometimes there won't be an error message, but the action just won't do its job. Use the server log to help figure out what's going on.
After Movies, work on Directors, then Actors, then Roles.
To submit, sync your work to your fork (often) and rake grade
(often).