The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Ruport Says to Rails, “Holla Back!”

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Gregory Brown

Posts: 172
Nickname: greg7224
Registered: Nov, 2005

Gregory Brown is the author of Ruby Reports (ruport)
Ruport Says to Rails, “Holla Back!” Posted: Feb 23, 2006 1:37 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Gregory Brown.
Original Post: Ruport Says to Rails, “Holla Back!”
Feed Title: Stone Code Weblog
Feed URL: http://www.stonecode.org/blog/?feed=rss2
Feed Description: A blog about my projects and activities in the ruby community.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Gregory Brown
Latest Posts From Stone Code Weblog

Advertisement
>> dump = Album.find(:all).map { ¦e¦ e.attributes } => [{”composer”=>”bar”, “title”=>”Foo”, “id”=>1, “producer_id”=>1}, {”composer”=>”Banana”, “title”=>”Apple”, “id”=>2, “producer_id”=>1}] >> my_ds = dump.to_ds(dump[0].keys) => .. it returns a dataset but my blog is eating this >> my_ds.to_csv => “composer,title,id,producer_id\nbar,Foo,1,1\nBanana,Apple,2,1\n”

Read: Ruport Says to Rails, “Holla Back!”

Topic: Ruport Released Previous Topic   Next Topic Topic: Stupid Rake tricks

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use