Assignment#1: Ruby Model, generate songs and query (Ice)
- Create, migrate and load seed model
- rails generate migration CreateSongs name:string brand:string album:string genre:string chord:string
- rails db:migrate
- rails db:seed
- Interact with Songs
-
Songs.find_c_chord
-
Songs.find_the_beatles
-
Songs.find_rock
Assignment#2 Ruby Controller, view, json (Top)
- Get 3 songs view: http://localhost:3000/song/html
- Get 3 songs JSON: http://localhost:3000/song/json