Session 10: Exercises
Exercise 1:
- Create a model that represents a music Album. Albums have name and artist_name fields.
- Create a model that represents a music Song. Songs have a name and belong to an album.
Exercise 2:
Be sure to use resources
- Create an index page that lists albums (index), and links to individual album pages (show) that shows each of the songs on a given album.
- Include a link on the individual album pages back to the album index.
Exercise 3:
- Create a form that allows adding a new album via the index page
- Create another form that allows adding a song to an album
Each form should redirect back to the page it was created from after creation.