- Be comfortable building and associating objects via all mechanisms available
-
Create 3 models: Artist, Album, and Song
-
The artist, "Wu-Tang Clan", has the following album, with the following songs:
- "36 Chambers"
- "Bring da Ruckus"
- "C.R.E.A.M"
- "Protect Yo Neck"
- "Method Man"
- "36 Chambers"
Add each song to the album in a different way. e.g. using an example where an Author has many Posts: Post.build
, posts << Post.new
, Author.build_post
-
The artist, "Notorius B.I.G.", has the following albums, with the following songs.
-
"Ready to Die"
- "Gimme the Loot"
-
"Born Again"
- "Dead Wrong"
-
"Life After Death"
- "Hypnotize"
-
Add the albums through a song, and add artists through album, via .build_*
, push (shovel <<)
, or assignment.
FYI under Wu Tang Clan, "Protect Yo Neck" should be "Protect Ya Neck". Consider this my pull request :)