Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6145107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:44:58+00:00 2026-05-23T18:44:58+00:00

I installed the comma gem today and everything worked perfectly, but the actual .csv

  • 0

I installed the comma gem today and everything worked perfectly, but the actual .csv file is empty except for the first cell, which reads:

#<Proc:0x2795700@C:/Ruby192/lib/ruby/gems/1.9.1/gems/comma-0.4.1/lib/comma/render_as_csv.rb:35>

I’m calling comma with this in my controller:

def index
  @registrants = @rsvp.rsvp_registrants

  respond_to do |format|
    format.html
    format.csv { render :csv => @registrants }
  end
end

And keeping it simple in my model for now:

comma do
  email
end

I have tried various other queries, including ones that only return one record, just for troubleshooting purposes. Also installed fasterCSV just now in case it was a dependency.

I’m on Rails 3, Ruby 1.9.2, developing on a Windows XP machine.

Any help is appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:44:59+00:00Added an answer on May 23, 2026 at 6:44 pm

    It seems like the latest version of comma(0.4.1) is missing this patch to fix Rails3 rendering support which seems like it would fix the problem you are experiencing.

    Try using comma from github instead

    gem "comma", :git => "git://github.com/crafterm/comma.git"  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed SVN on a Windows 2008 server, everything works like it should, except
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed both the Delphi 2009 trial and actual release via the web installer
I installed subclipse in eclipse, but I get an error message Expected format '3'
Just installed the latest SDK for iPhone 2.1. When I go to File ->
I installed easy_install under windows, and installed pygraph but the commad import gv in
Installed visual studio 11 beta as wanted to test EF 5 beta but keep
Installed rvm gem installed passenger when I try to install passenger-install-apache2-module it gives? root@c2h2crawler:~#
I installed GitHub on mac but I don't have installed git on terminal. When
Installed rubyinstaller-1.9.2-p136 and ran the the following commands in the cmd prompt. gem update

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.