jsmestad / jsonapi-consumer

Client framework for consuming JSONAPI services in Ruby
https://github.com/jsmestad/jsonapi-consumer
Apache License 2.0
94 stars 18 forks source link

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

Open simmerz opened 5 years ago

simmerz commented 5 years ago

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?