Hi all, I'm quite new to DataMapper (and also fairly new to Ruby), and quite like it so far. I'm a bit puzzled by one thing, though, and maybe you can help me out.
I have a class Item, which can be part of class Character, but might not be. I.e. in character.rb has n, :items and in item.rb belongs_to :character Now I can simply add an item by doing c.items << item but I don't seem to be able to disassociate an item from a character, i.e. c.items.delete(item) Which I thought should work. I don't get an error message, but the item record in the database still refers to the character, and c.items.all still includes the item. How should I remove the association? Mind you, I am not trying to delete the item, just the association with the character. Thanks in advance for any suggestions! Jos --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
