The delete button in activeadmin does not work, and send me to the show
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
检查你的active_admin.js文件,必须有:
//= require jquery
//= require jquery_ujs
这帮助了我(我的资产拥有旧的1.5.1版本,但我认为你可以用任何你想要的替换它)
//= require jquery-1.5.1-min
//= require jquery_ujs
//= require bootstrap-datepicker
In the active_admin.js.coffee.
Try:
#= require active_admin/base
链接地址: http://www.djcxy.com/p/71018.html