开发者

Getting SASS to work with Rails 3

开发者 https://www.devze.com 2023-02-08 21:55 出处:网络
I am trying to get SASS to work with Rails 3. I have added gem \'haml\' to my Gemfile (and ran bundle install) and I have added a styles.scss to my public/ directory, but it does not seem to be workin

I am trying to get SASS to work with Rails 3. I have added gem 'haml' to my Gemfile (and ran bundle install) and I have added a styles.scss to my public/ directory, but it does not seem to be working. Can someone help me 开发者_运维知识库out? Thanks!


By default, Sass expects sass/scss files to go in public/stylesheets/sass, which are then compiled into css files in public. You can change this path by setting Sass::Plugin.options[:template_location] in your config, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消