I need to create a data parser that will read in a couple CSVs (predefined format), parse, check for validity, and then, if all goes according to plan, commit the data to the database. Finally, report any errors that the validity checker didn't catch that were ultimately fatal. It would be extremely helpful if, on most errors, it could still commit the error free rows and at least report the rows that were not committed.
Does anyone know of a gem, any other resource, or any advice that I could use to get me started?
This is going to be part of a larger Padrino app, and each CSV will be POSTed to a route that is meant for this type of processing.
Thank you for your help!