I have a new model I've just built. It's associated with another model
via has_many. I'm trying to create one of these obj's for the first
time and I keep getting an Argument Error as follows:
ArgumentError (wrong number of arguments (3 for 0)):
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/
active_record/dirty.rb:135:in `field_changed?'
this happens when I try to create the obj, but it's deep in the rails
codebase and I cant figure out why it's happening.
I've tried both creating the object as part of the association like
this:
self.updates.create()
and directly like this:
update = Update.create() or update = Update.new()
with and without values passed in as a hash and get the same results
every time.
I have a new model I've just built. It's associated with another model
via has_many. I'm trying to create one of these obj's for the first
time and I keep getting an Argument Error as follows:
ArgumentError (wrong number of arguments (3 for 0)):
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/
active_record/dirty.rb:135:in `field_changed?'
this happens when I try to create the obj, but it's deep in the rails
codebase and I cant figure out why it's happening.
What columns / associations/ methods does your model have ? I'd guess
that one of these is accidentally overriding a core activerecord
method.
OMG, you're right! Couldnt see the forest for the trees. Thx, Fred!
This didnt show up in any lists I looked at for MagicReservedwords and
such... I might have to find time to walk thru the rils code to see
what other names could clash w method names.