[Rails] Re: accepts_nested_attributes_for :has_many :through => 'bug?'

2010-01-26 Thread mark
Thanks for having a look Matt, I've changed <% f.fields_for :companies do |company| %> to <% f.fields_for :companies_attributes do |company| %> and i'm no longer getting the "expected object, but got array error", now i'm getting "undefined method `stringify_keys' for "test":String" where "test

[Rails] Re: accepts_nested_attributes_for :has_many :through => 'bug?'

2010-01-26 Thread Matt Jones
On Jan 25, 7:34 pm, mark wrote: > Hey guys & ladies! > > I've got the following relationship which i'm trying to get > accepts_nested_attributes to work with. But when i submit my form, it > looks as if its expecting a Company object, rather than an array of > companies. which really doesn't mak