All Questions
1 question
0
votes
2
answers
262
views
Why I need to select image again after validation failed
I have two models
class ComfortFactorSubCategory < ApplicationRecord
has_one :image, as: :imageable, dependent: :destroy
validates :heading, presence: true
accepts_nested_attributes_for :...