Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Chaining example
##AR 2
Person.find(:all, :conditions => {:name => "Joe", :is_admin => true}, :limit => 10)
##=> Array
#AR 3
Person.where(:name => 'joe', :is_admin => true).limit(10)
##=> ActiveRecord::Relation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.