Hello, the manual says I can do:

class Game
  include DataMapper::Resource

  belongs_to :challenger, 'User'
  belongs_to :challengee, 'User'
  ...
end

But when I run the code it says

+other+ should be DataMapper::Query or Hash, but was User

on the challenger field

I am using DM 0.10.2 an jruby

Thanks

--

You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamap...@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.


Reply via email to