Written by Sean Behan on Sun Jun 17th 2012

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 with..
#active record #find #Rails #ruby #sql #Ruby on Rails

Just finishing up brewing up some fresh ground comments...