我有一个使用ActiveAdmin 1.0的Rails 3.2应用程序,我正在使用active_admin_editor gem here。
我随时尝试加载,我得到以下错误。前端加载正常,如果我删除active_admin_editor gem,ActiveAdmin加载正常。
我搜遍了谷歌和各地所以试图找出答案的几天。
/Library/Ruby/Gems/2.0.0/gems/active_admin_editor-1.1.0/app/assets/stylesheets/active_admin/editor.css.scss中未定义的mixin'box-shadow'
Application.css.scss
*= require_self
*= require formtastic-bootstrap
*= require my_styles
*= require active_admin/editor/wysiwyg
我的应用程序布局。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!--Latest minified Font Awesome CSS-->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<!-- Custom styles for this template -->
<link href="/assets/my_styles-6077c0d3b7523ad80195404b9270b1ac.css" media="screen" rel="stylesheet" type="text/css" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<meta content="authenticity_token" name="csrf-param" />
<meta content="" name="csrf-token" />
</head>
<body>
<script src="/assets/application-0c2344779e38105475d0e1be9a815723.js" type="text/javascript"></script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>
答案 0 :(得分:8)
尝试在github上使用active_admin_editor。
gem 'active_admin_editor', github: 'ejholmes/active_admin_editor'
答案 1 :(得分:4)
对于 github:&#39; ejholmes / active_admin_editor&#39; 此repo gemspec是invaild。
尝试使用以下代理:
gem 'active_admin_editor', github: 'boontdustie/active_admin_editor'
这可以解决您的问题。
答案 2 :(得分:0)
我使用了这个宝石:activeadmin-wysihtml5即使它没有维护,它也有硬编码的盒子阴影。