I have a has_many relationship with another object. Because of this, Mongoid creates an attribute titled item_ids as an Array so I can conveniently save numerous ids as an array. However, whenever I attempt to save a new array it never actually saves. In my rails console I run the following code.
1.9.3p385 :035 > miss.item_ids = [1,2,3]
=> [1, 2, 3]
1.9.3p385 :036 > miss.save
[paperclip] Saving attachments.
=> true
1.9.3p385 :037 > miss.item_ids
=> []
As you can see when I save the object it returns true. However when I return to check out the item_ids I'm returned an empty array. What am I doing wrong?
full_messagesreturn an empty array.