I am trying to add multiple HABTM relationships through ActiveResource, but I am running into a lot of trouble. It seems that in a traditional rails app (i.e. all ActiveRecord), you can simply set your HABTM ids, and do something as such:
habtm = {:category_ids => [1,2,3]}
article.update_attributes(habtm)
Unfortunately, when I try to do this through ActiveResource, I get an error because it cannot convert the array into valid xml. I understand why it cannot, but I am stuck, and cant figure out how to solve this problem.
Any ideas?
Thanks