active_record-acts_as
active_record-acts_as copied to clipboard
belongs_to relationship created by actable?
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.