jsonapi-consumer
jsonapi-consumer copied to clipboard
How does one build has_many associations in rails forms using nested fields?
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?