search for: compare_own

Displaying 1 result from an estimated 1 matches for "compare_own".

Did you mean: compare_of
2006 Aug 12
2
Extend ActiveRecord::Base
Hi, I want to exten ActiveRecord::Base with own methods: class Stock < ActiveRecord::Base def compare_own ... end end But call Stock.compare_own fails: NoMethodError: undefined method `compare_own'' for Calendar:Class /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'' But why? I want to use only ActiveRecord from RoR, I hope this isn...