Skip to content

Instantly share code, notes, and snippets.

@zachinglis
Created July 28, 2008 18:56
Show Gist options
  • Save zachinglis/2934 to your computer and use it in GitHub Desktop.
Save zachinglis/2934 to your computer and use it in GitHub Desktop.
>> Business.search(:conditions => { :state => "paid" }).length
=> 20
>> Business.find_all_by_state("paid").length
=> 321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment