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

Save the parent object before creating a child association #822

Conversation

jrafanie
Copy link
Member

Rails 5.2 raises this error if you try to persist the child before creating the
parent: Failed to create new custom button - You cannot call create unless the parent is saved

Followup to #814
Needed for Rails 5.2: ManageIQ/manageiq#20032

Rails 5.2 raises this error if you try to persist the child before creating the
parent: `Failed to create new custom button - You cannot call create unless the
parent is saved`

Followup to ManageIQ#814
Needed for Rails 5.2: ManageIQ/manageiq#20032
@d-m-u
Copy link
Contributor

d-m-u commented Apr 30, 2020

fine, as long as
@miq-bot add_label jansa/yes, ivanchuk/yes

@jrafanie
Copy link
Member Author

Closing, duplicate of #821

@miq-bot
Copy link
Member

miq-bot commented Apr 30, 2020

Checked commit jrafanie@75ff4fa with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. ⭐

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

Successfully merging this pull request may close these issues.

3 participants