Skip to content

Instantly share code, notes, and snippets.

@marocchino
Created March 23, 2011 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marocchino/882724 to your computer and use it in GitHub Desktop.
Save marocchino/882724 to your computer and use it in GitHub Desktop.
#2.3
Article.find_all_by_id_and_view(1..10, true)
#3.x
Article.where(:id => 1..10, :view => true).all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment