VocabReminder
Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app

Active Record Find Methods

       

Active Record find methods for selecting range from http://charlesmaxwood.com/notes-from-reading-activerecordbase/


Student.find(:all, :conditions => { :grade => 9..12 })
return a range
Student.find(:all, :conditions => { :grade => [9,11,12] })
will return an "in()"
Tagged w/ #active record #find #rails #ruby #sqlruby on rails