ruby-on-rails – Active_Admin删除不起作用 – 未捕获TypeError:无法读取未定义的属性’mozilla’

我最近更新到最新版本的活动管理员,现在我的删除按钮不起作用.我正在使用未经修改生成的标准页面.我在浏览器调试控制台上收到此错误

未捕获的TypeError:无法读取未定义的active_admin.js属性’mozilla’:9612
(匿名函数)active_admin.js:9612
(匿名函数)active_admin.js:10118

这是我的application.js文件.

// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll     automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here,but if you do,it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require underscore

我在我的网站上使用jquery,所以我确信它被包含在内.

我已经多次运行rails generate active_admin:assets.我一直试图解决这个问题大约10个小时,我很难过.任何帮助将不胜感激.

解决方法

加载JQuery js库后,将以下内容添加HTML代码中:(使用JQuery版本1.9时发生)
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...