Forum: Ruby on Rails RE: noob question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
72d155311eb7c9c85fcfd5f37392a4f9?d=identicon&s=25 Luke Hinds (Guest)
on 2006-04-18 20:37
(Received via mailing list)
Hi Jeff & Henry,

Thanks for your help :)

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
This topic is locked and can not be replied to.