Displaying 1 result from an estimated 1 matches for "waaaaaah".
Did you mean:
waaaaaaah
2006 Apr 18
1
what happened to my increment_counter method?
...;'t work.
here''s my models:
class Company < ActiveRecord::Base
has_many :people
end
class Person < ActiveRecord::Base
belongs_to :Company, :counter_cache => true
end
then i go into my console and say:
c = Company.find(:first)
c.increment_counter
and its all like "waaaaaaH"
NoMethodError: undefined method `increment_counter'' for #<Company:
0x259e3b0>
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/
lib/active_record/base.rb:1792:in `method_missing''
from (irb):8
if i type:
Company.inc and then hit tab, .inc...