Showing posts with label csv. Show all posts
Showing posts with label csv. Show all posts

Wednesday, December 8, 2010

Loading CSV files using Rails 3.0.3

While watching the Falcons vs Bucs game on NFL Instant Replay on the NFL Network (that channel absolutely rocks), I decided to take up a challenge and build a very simple RoR app that uploads a CSV file that contains a list of Cities and corresponding zipcodes and store it in a database. The app will have simple CRUD operations for City/Zipcode as well as an upload view for uploading the file to the server. From the start I decided to have two controllers (one for CRUD'ing the City/Zip and one for Uploading the file). And here we go...