RE: noob question

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs