I am getting a named_scope error, am i trying to use it incorrectly?
class Owner < ActiveRecord::Base
has_many :dogs
named_scope :is_fit?, :conditions => { :age => 16..40 }
end
class Dog < ActiveRecord::Base
belongs_to :owner
def is_owner_fit?
owner.is_fit?
end
end
undefined method `is_fit?' for #<ActiveRecord::Associations::BelongsToAssociation:0x251807c>