ArgumentError (wrong number of arguments (2 for 1))

ok, starting to get a tad frustrated. rails ActiveRecord::Base docs...

http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M000860

...show the basic use of the find method to be as so:

Person.find(1) # returns the object for ID = 1

...but when i do the exact same method call in my code, i get this
error...

ArgumentError (wrong number of arguments (2 for 1))

this only started after i upgraded to 1.1.6.

what gives? any help appreciated, this basic method failing is doing a
great job of holding me up :wink:

thanks in advance.

think i figgered it out...

"records - a table named records seemed to cause duplicate entries to
be found by find"

my bad for naming a table Records in my jukebox app :frowning:

apologies for the spam.

post some more of your log so we can see where it’s failing exactly.

also, are you using any plugins that modify/extend ActiveRecord?

ed

ok, starting to get a tad frustrated. rails ActiveRecord::Base docs...

http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M000860

...show the basic use of the find method to be as so:

Person.find(1) # returns the object for ID = 1

...but when i do the exact same method call in my code, i get this
error...

ArgumentError (wrong number of arguments (2 for 1))

this only started after i upgraded to 1.1.6.

what gives? any help appreciated, this basic method failing is doing a
great job of holding me up :wink: