- Create a long-running task.
- Upload and process a CSV file to create songs.
In this lab, we're going to augment the song library so that we can upload a CSV of songs and artists to expand our collection.
You will find a CSV of classic rock songs and artists in db\songs.csv
. Use it to test your work!
Note: This list is provided by FiveThirtyEight and is available under Creative Commons Attribution 4.0 International License.
- Update the songs index page to allow a CSV file upload of songs with
artist names. In an
songs_controller#upload
action, createSong
andArtist
records from the CSV and redirect to the songs index page. - Make sure tests pass!
Note We're editing an existing application with some intentionally passing tests.