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

belongs_to relationship created by actable? #97

Open
psnider30 opened this issue Jun 4, 2021 · 0 comments
Open

belongs_to relationship created by actable? #97

psnider30 opened this issue Jun 4, 2021 · 0 comments

Comments

@psnider30
Copy link

class QuestionAttribute < ApplicationRecord
actable

accepts_nested_attribute_for ?
end

class Industry
acts_as :question_attribute, dependent: :nullify, autosave: false
end

I have this setup with several classes like industry. I want to include accepts_nested_attributes_for in the QuestionAttribute class, but I don't know what the relationship is?

A question_attribute belongs_to ?

accepts_nested_attribute_for :actable does not throw an error in the model. However, when I try and save with actable_attributes: [:name] in my question_attributes params I get the attached error message.
Screen Shot 2021-06-03 at 10 56 58 PM

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