Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

csv generation problems

#4

The csv generation module is not getting loaded by default.

I loaded it manually by adding the following to environment.rb:

require 'ar-extensions/csv' ActiveRecord::Base.class_eval do include ActiveRecord::Extensions::FindToCSV end

The to_csv instance methods are also not being added to Array correctly, maybe related.

I added them manually in my code by running @employees.extend(ActiveRecord::Extensions::FindToCSV::ArrayInstanceMethods)

After I had generated the list of employees with a standard ActiveRecord find() call. Perhaps the find() override is not happening.

The FasterCSV module is already adding to_csv() to Array. But they are not the right thing.

Reported by Jake Morrison · August 12th, 2008 @ 07:20 AM

State: new
Milestone: none
Assigned to: Zach Dennis Zach Dennis

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.