Skip to content

Instantly share code, notes, and snippets.

@dce
Created January 29, 2009 20:11
Show Gist options
  • Save dce/54714 to your computer and use it in GitHub Desktop.
Save dce/54714 to your computer and use it in GitHub Desktop.
SpeakerRate User Activity Report
User.find(:all, :conditions => ["created_at >= ?", Time.local(2009, 1, 26)]).each do |u|
if u.speaker
puts "#{u.created_at.to_date} #{u.speaker.name}"
end
end
Speaker.all.last(20).map {|s| s.talks.any? && s.talks.first.creator.speaker.name }
Speaker.all.each do |s|
puts s.name + "\t\t" + s.claim_code unless s.claim_code.blank?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment