8

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

<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

结尾

4

3 回答 3

5

Check your active_admin.js file, must have:

//= require jquery
//= require jquery_ujs
于 2013-04-25T22:37:41.150 回答
0

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

//= require jquery-1.5.1-min
//= require jquery_ujs
//= require bootstrap-datepicker
于 2014-01-31T11:53:35.253 回答
0

在 active_admin.js.coffee 中。

尝试:

#= require active_admin/base
于 2018-05-06T05:27:05.100 回答