comma-csv / comma

Comma is a small CSV (ie. comma separated values) generation extension for Ruby objects, that lets you seamlessly define a CSV output format via a small DSL

Home Page:https://github.com/comma-csv/comma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails 3 - error msg about activesupport

opened this issue · comments

I am trying to use comma in a Rails 3 project. I added the gem to the app's gemfile.

When I try to add the comma ... do end statement to a model, I get a "comma - method undefined" error. So I add a

require 'comma' to the model, which makes the method undefined error go away, but now I get an exception saying "no such file to load - activesupport"

Could you give us step-by-step instructions on how to use comma in a Rails 3 project, please? It requires activesupport, but I believe the way Rails 3 includes activesupport has been changed.

Please help, I'd like to use your great software

I was able to get around this error by installing comma as a plugin. Now, I get just a proc dump in the csv data, but this will be another issue