Skip to content
lukasalexandre edited this page Dec 24, 2012 · 3 revisions

Add this line to your application's Gemfile:

gem 'csv_record'

And then execute:

$ bundle

Or install it yourself as:

$ gem install csv_record

And inside your Ruby models just require and include the CSV_Record lib and start using it in the same way as your are used to:

require 'csv_record'

class Car
  include CsvRecord::Document

  attr_accessor :year, :make, :model, :description, :price
end
Clone this wiki locally