Displaying 1 result from an estimated 1 matches for "certified_item".
Did you mean:
certified_items
2006 Apr 12
3
noob question
...my first app based on the ''depot'' application but with some
suttle differences to help me learn.
I am a bit sutck with following and would be grateful for any help:
I have the following controller:
class MainController < ApplicationController
def index
@objects = Object.certified_items
end
end
This relates to a field called ''certified'' within a table called
objects. The certified field contains an ''int'' of either 0 or 1 - these
will become Y/N checkboxes.
Within my model I have the following:
def self.certified_items
find(:all,...