Error:
Unpermitted parameters: _destroy
Unpermitted parameters: utf8, _method, authenticity_token, commit,
permit_params :id, :is_teen_event, :venue_name, :summary_link, :_destory, :utf8, :_method, :authenticity_token, :commit, :summary_short, :summary_photo, :ticket_link, :name, :summary, :link_to_venue, :event_date, :flyer_title, :allow_band_signups, :image, :flyer, band_signups_attributes: [:id, :event_id, :name, :_destory, :utf8, :_method, :authenticity_token, :commit]
f.inputs do
f.has_many :band_signups, allow_destroy: true do |d|
d.input :name
d.actions
end
end
accepts_nested_attributes_for :band_singups, :allow_destroy => true
That's likely because you misspelled _destroy
as _destory
Closed as I'm an idiot
:-)
Most helpful comment
Closed as I'm an idiot