Topic: Importing CSV files into a database
I'd like to allow users to upload a csv file and then add contents of the csv file to my tables. What I'm looking for is a way to receive the file from a form input, then parse out the contents of the file, I guess into a series of arrays, then add the array contents into the tables. The step where I'm most hung up is how to receive the csv file and extract the contents into an array that I can work with. Is there a plugin, gem, or other simple solution for this?