search for: find_all_by_chapter

Displaying 1 result from an estimated 1 matches for "find_all_by_chapter".

2006 Apr 07
22
Find WHERE in Rails
I''d like to find all records that have a certain integer as their "level" field in the database. I know how to find all the records: allquestions = Question.find(:all) ...and I know how to find the one record that has a certain id: allquestions = Question.find(params[:id]) ...but how do you find all the records that share a certain value in one of their fields? I tried