I have a model called Answer that can have many attachments. I have specified it as has_many_attached :answer_files and permitted the parameter as per
Answer
has_many_attached :answer_files