DanS, I had a tough time with this too.
What does work is post.first.watchers.each do |first| first.post end Something like that. It can't quite handle the n:n recursion of mapping back otherwise. It took me awhile to figure it out but suddenly it clicked. -kim. On Feb 9, 6:59 pm, daniel_spaniel <geu...@gmail.com> wrote: > Hi > > I was playing with datamapper and did something like this > > Watcher.first.post > > which works fine .. but this does not: > > Post.first.watchers.first.post > > Its not something I would do everyday, true, but it would make the > library more robust if that worked, since that is expected behavior > > http://pastie.org/817587 > > ~ Dan -- 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.