- 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 view to allow a user to upload a CSV file of songs with artist names
- Implement the
songs_controller#upload
action, which should createSong
andArtist
records from the CSV and redirect to the songs index page - Make sure all tests pass!
Note We're editing an existing application with some intentionally passing tests.