Skip to content

Instantly share code, notes, and snippets.

@bdittmer
Created February 2, 2012 18:00
Show Gist options
  • Save bdittmer/1724879 to your computer and use it in GitHub Desktop.
Save bdittmer/1724879 to your computer and use it in GitHub Desktop.
table_for ActiveRecord::Base.connection.select_all(sql).each do |row|
column("Handle") { row["handle"]}
column("Number of Shifts") { row["num_gigs"]}
column("Percent of Total Shifts") { row["percent"] }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment