ruby-on-rails - 找不到 Rails @import compass

标签 ruby-on-rails ruby-on-rails-3 asset-pipeline compass-sass

这是我的 application.css:

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require_tree .
*/

@import "compass/reset";

在 compass 重置上获得 404:

GET http://0.0.0.0:3000/assets/compass/reset 404 (Not Found)

顺便说一句,运行 Rails 3.2.3。谢谢!

最佳答案

application.css 重命名为 application.css.scss

关于ruby-on-rails - 找不到 Rails @import compass ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10626263/

相关文章:

ruby-on-rails - ruby on rails、meta_search 和不区分大小写的 oracle

ruby-on-rails - rake Assets :precompile:nodigest in Rails 4

dojo - 如何将dojo工具包与rails 3.1 Assets 管道和coffeescript一起使用?

css - 为什么我不重新启动 WEBrick 就不会显示我的 css 更改?

ruby-on-rails - ajax 请求后无法显示 Twitter Bootstrap 模式

javascript - 错误数量的参数问题

javascript - 使用 Rails 和 Javascript 按顺序提交多个表单(无论成功还是失败)

css - Rails 背景图片不显示?

ruby-on-rails - Rails 路径中出现错误 "jquery.js isn' t ....”

ruby-on-rails - 如何将变量 link_to 定义为外部 URL