Rails 5 - exclude specific instances from edit path on parent controller
问题 I have models in my Rails 5 app for User, Proposal and Potential. Users create Proposals which they themselves and others can then create comments on. The associations between models are: User has_many :proposals, dependent: :destroy has_many :potentials Proposal belongs_to :user has_many :potentials, inverse_of: :proposal accepts_nested_attributes_for :potentials, reject_if: :all_blank, allow_destroy: true Potential belongs_to :proposal, inverse_of: :potentials belongs_to :user In my routes