Is there any way to get the edge rails feature that allows you to do use << to add an object to a relationship, just like in the HABTM. I know Josh Susser talked about about how someone released a fix for it, but it didnt seem to make it into Rails 1.2. Any ideas?
on 2007-04-16 19:01
on 2007-04-17 04:38
I tried extending the relationship, but this method seems a little hackish: has_many :through=>x do def <<(value) JoinTable.create() end end However, Im having a little trouble getting the id for the object since its passing through another relationship. Any ideas. Thanks in advance.