Activeadmin: Nested resources not deleting, despite having :_destroy and allow_destroy in model and activeadmin rb

Created on 29 Aug 2014  路  3Comments  路  Source: activeadmin/activeadmin

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

Most helpful comment

Closed as I'm an idiot

All 3 comments

That's likely because you misspelled _destroy as _destory

Closed as I'm an idiot

:-)

Was this page helpful?
0 / 5 - 0 ratings