Hi,
I have a database table called "xyz" with a column "key". But when I
try to run datamapper to save data, it throws the following:
/Library/Ruby/Gems/1.8/gems/dm-core-1.2.0/lib/dm-core/property.rb:
739:in `initialize': +name+ was "key", which cannot be used as a p
roperty name since it collides with an existing method or a query
option (ArgumentError)
from /Library/Ruby/Gems/1.8/gems/dm-core-1.2.0/lib/dm-core/
property/string.rb:32:in `initialize'
from /Library/Ruby/Gems/1.8/gems/dm-core-1.2.0/lib/dm-core/
model/property.rb:55:in `new'
from /Library/Ruby/Gems/1.8/gems/dm-core-1.2.0/lib/dm-core/
model/property.rb:55:in `property'
from /Library/Ruby/Gems/1.8/gems/dm-validations-1.2.0/lib/dm-
validations/auto_validate.rb:11:in `property'
from app.rb:26
I have a table with column name itself as "key"
How can I fix this?
Thanks in advance
Muthu
--
You received this message because you are subscribed to the Google Groups
"DataMapper" 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/datamapper?hl=en.