Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simmerz opened this issue May 29, 2019 · 0 comments

Comments

@simmerz
Copy link
Contributor

simmerz commented May 29, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant