Required Demos-n-Deets demos:
Optional demos (for now): Everything else in the “Model Associations” section of the Demos-n-Deets.
Follow the general instructions for active reading for the above required demos.
What to submit:
Quiz
model class,Question
model class, anddb/schema.rb
file.Question
index page that includes several rows in the table,Question
new/create form,Question
edit/update form,config/routes.rb
file,QuestionsController
class,app/views/questions/index.html.erb
view template, andapp/views/questions/new.html.erb
view template.In the above screenshots, code which is too long to be captured in one screenshot may be split up into multiple screenshots.
Important! All screenshots must include your computer’s desktop in the background so that it is recognizable as your desktop. Also, all screenshots of web pages must display the entire URL of the page in the browser’s location bar. (Watch out, as some browsers like to hide parts of the URL unless you click on it.)
Before proceeding, be sure to read the general description and instructions for the practice tests.
Start with the base project on the album-db
branch of this repo: https://github.com/memphis-cs/practice-apps-2022-08fall
The aim of this project is enable users to manage a database of music albums. The project already includes an Album
model class and a Track
model class, as per this class diagram:
Along with these model classes, the app includes the standard resource-CRUDing pages and UI features for Album
model objects (but not for Track
objects). It also includes model validations and database seeds. (You can ignore the test fixtures and model tests for this assignment.) It is recommended that you initialize and run the base app at this point, so you can see what’s there.
Task to perform:
Album
and Track
model classes, as per this class diagram:db/seeds.rb
file to use the association.Track
objects (as demonstrated in the Nested-Resource Pages demo). Make these pages and features work in a manner consistent with how they worked in the demo.What to submit:
Album
model classTrack
model classdb/schema.rb
file (after all migrations have run).db/seeds.rb
fileTrack
index page, including several rows in the tableTrack
new/create formTrack
edit/update formconfig/routes.rb
fileTracksController
classapp/views/tracks/index.html.erb
view templateapp/views/tracks/new.html.erb
view templateIn the above screenshots, code which is too long to be captured in one screenshot may be split up into multiple screenshots.
Important! All screenshots must include your computer’s desktop in the background so that it is recognizable as your desktop. Also, all screenshots of web pages must display the entire URL of the page in the browser’s location bar. (Watch out, as some browsers like to hide parts of the URL unless you click on it.)
Before proceeding, be sure to read the general instructions for the explanation videos.
Important! For this explanation video, you must follow the task plan and reflection instructions.
Start with the base project on the basketball-roster-editor
branch of this repo: https://github.com/memphis-cs/practice-apps-2022-08fall
The aim of this project is enable users to create and edit basketball team rosters. The project already includes a Team
model class and a Player
model class, as per this class diagram:
Along with these model classes, the app includes the standard resource-CRUDing pages and UI features for Team
model objects (but not for Player
objects). It also includes model validations and database seeds. (You can ignore the test fixtures and model tests for this assignment.) It is recommended that you initialize and run the base app at this point, so you can see what’s there.
The video can begin after you have cloned, initialized, and run the base app.
Task to perform:
Team
and Player
model classes, as per this class diagram:db/seeds.rb
file to use the association.Player
objects (as demonstrated in the Nested-Resource Pages demo). Make these pages and features work in a manner consistent with how they worked in the demo.In the video, be sure to use all features that you create, so that it’s clear that they work. Don’t forget to enter invalid data into the forms.