README.md

ActiveRecord CSV Importer

What is it?

Man am I ever sick of writing the same code over and over again to import CSV representations of data in my Rails applications. You probably are too. Install ActiveRecord CSV Importer and stop doing it!

Requirements

Ruby: >= 1.9.3

Rails: >= 3.2

Installation

Put it in your Gemfile, as usual, and run bundle install. Easy!

gem 'ar_csv_importer'

Usage

Setting up the class:
Let's imagine you have a Merchant class. The class has a title, an address, a URL, and a description. First, add the importer to your class.