rails admin - scss错误

时间:2013-01-16 20:24:55

标签: ruby-on-rails-3 sass rails-admin

我安装了rails admin,但在尝试访问/admin时收到错误:

enter image description here

我的Gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.11'

gem 'devise'
gem 'rails_admin'

gem 'pg'
gem 'haml'

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'therubyracer'
  gem 'less-rails'
  gem 'coffee-script'

  gem 'uglifier', '>= 1.0.3'
end

我在app/assets/stylesheets/*

中有自定义较少的样式

1 个答案:

答案 0 :(得分:0)

原来是twitter bootstrap& rails admin incompatibility。

Rails管理员尝试加载bootstrap.less中的app/assets/stylesheets

解决方案:将bootstrap.less重命名为bootstrap-mine.less