Skip to content

belongs_to relationship created by actable? #97

@psnider30

Description

@psnider30

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions