Skip to content

Instantly share code, notes, and snippets.

@thoughtbot
Created August 4, 2009 21:22
Show Gist options
  • Save thoughtbot/161554 to your computer and use it in GitHub Desktop.
Save thoughtbot/161554 to your computer and use it in GitHub Desktop.
posts = Post.find do
user.email =~ "%thoughtbot%"
tags.name === %w( ruby rails )
created_on <=> [ 2.weeks.ago, 1.week.ago ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment