On Nov 30, 9:02 pm, lunaclaire <[email protected]> wrote: > 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. Fred > 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. > > has anyone else seen this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

