The problem is that I can not delete anything from my application. I delete the views leaving only the public, the layout and admin.
<a rel="nofollow" data-method="delete" data-confirm="Are you sure you want to delete this?" href="/admin/actividades/34">Delete Actividade</a>
app/admin/actividades
ActiveAdmin.register Actividade do
menu :label => "Actividades", :priority => 14
form :partial => "form"
actions :index, :show, :new, :create, :update, :edit, :destroy
index :title => "Actividades" do
column "Id", :id
column "Nome", :name
column "Grupo", :grupo
column "Actividade", :category
column "Nome da imagem", :image_file_name
column "Video", :video
column "Criado a", :created_at
column "Atualizada a", :updated_at
default_actions
end
end
Check your active_admin.js file, must have:
//= require jquery
//= require jquery_ujs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With