activeadmin中的删除按钮不起作用,并将我发送到节目

问题是我无法从我的应用程序中删除任何东西。 我删除了只留下公众,布局和管理员的视图。

<a rel="nofollow" data-method="delete" data-confirm="Are you sure you want to delete this?" href="/admin/actividades/34">Delete Actividade</a>

应用程序/管理/ 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

结束


检查你的active_admin.js文件,必须有:

//= require jquery
//= require jquery_ujs

这帮助了我(我的资产拥有旧的1.5.1版本,但我认为你可以用任何你想要的替换它)

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

在active_admin.js.coffee中。

尝试:

#= require active_admin/base
链接地址: http://www.djcxy.com/p/71017.html

上一篇: The delete button in activeadmin does not work, and send me to the show

下一篇: XDocument.Save() add unwanted namespace on each XElement