在rails 4.0.0中使用sass

时间:2021-11-22 19:55:03

I have this following errors File to import not found or unreadable: compass. I'm folowwing the tuts on railscast I have this in my Gemfile

我有以下错误文件导入未找到或不可读:指南针。我正在使用railscast上的tuts,我在我的Gemfile中有这个

group :assets do
  gem "compass", "~> 0.12.2"
end

and I have remove everything in my /assets/stylesheets/application.css.scss to put this

我删除了/assets/stylesheets/application.css.scss中的所有内容来放置它

@import "compass";
@import "compass/reset";
@import "susy"; //susy-framework
//whithin /assets/stylesheets/application.css.scss
@import "variables";
@import "mixins";
@import "base";
@import "layout";
@import "modules";

on my apllication.html.erb I have this <%= stylesheet_link_tag "application" %>

在我的apllication.html.erb上我有这个<%= stylesheet_link_tag“应用程序”%>

1 个解决方案

#1


0  

From your rails root directory, try running

从rails根目录,尝试运行

compass compile

If that doesn't work, try moving it outside of your :assets group. Hope that helps.

如果这不起作用,请尝试将其移到您的:assets组之外。希望有所帮助。

#1


0  

From your rails root directory, try running

从rails根目录,尝试运行

compass compile

If that doesn't work, try moving it outside of your :assets group. Hope that helps.

如果这不起作用,请尝试将其移到您的:assets组之外。希望有所帮助。