The delete button in activeadmin does not work and sends me to the show

The problem is that I cannot remove anything from my application. I delete the views, leaving only the public, 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

+7
source share
2 answers

Check the active_admin.js file should have:

 //= require jquery //= require jquery_ujs 
+4
source

It helped me (I had the old version 1.5.1 in my assets, but I think you can replace it with whatever you want)

 //= require jquery-1.5.1-min //= require jquery_ujs //= require bootstrap-datepicker 
0
source

All Articles