Skip to content

Instantly share code, notes, and snippets.

@clayton
Created March 22, 2010 07:29
Show Gist options
  • Select an option

  • Save clayton/339868 to your computer and use it in GitHub Desktop.

Select an option

Save clayton/339868 to your computer and use it in GitHub Desktop.
Project.find_by_sql('select * from projects where featured = 1 and public = 1 and recent = 1 order by RAND() limit 1')[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment