jsonapi-consumer icon indicating copy to clipboard operation
jsonapi-consumer copied to clipboard

How does one build has_many associations in rails forms using nested fields?

Open simmerz opened this issue 6 years ago • 0 comments

I'm struggling to figure out how to build has_many associations in rails using nested fields.

I've got has_many :addresses on an Order resource. If I create a new resource, I'd expect order.addresses to be something other than nil, and if I try setting it to [Address.new], it still returns nil.

Am I missing something?

simmerz avatar May 29 '19 11:05 simmerz