DataMapper has n through Resource DELETE (Remove from association) not working
问题 I'm have this two classes, class User include DataMapper::Resource property :id, Serial property :name, String has n :posts, :through => Resource end class Post include DataMapper::Resource property :id, Serial property :title, String property :body, Text has n :users, :through => Resource end So once I have a new post like: Post.new(:title => "Hello World", :body = "Hi there").save I'm having serious problems to add and remove from the association, like: User.first.posts << Post.first #why