RE: noob question


#1

Hi Jeff & Henry,

Thanks for your help :slight_smile:

Here is what worked in the end:

class MainController < ApplicationController
def index
@handsets = Handset.certified_items
end

class Handset < ActiveRecord::Base

def self.certified_items
find(:all,
:conditions => “certified =1”)
end
end

Cheers,
Luke