开发者

how do I link a sass stylesheet to rails templates?

开发者 https://www.devze.com 2022-12-27 05:28 出处:网络
This is a newb question, I know, but I can\'t seem to figure it out. I\'ve been using rails for a while but always went with regular css. Not sure if I\'m supposed to use

This is a newb question, I know, but I can't seem to figure it out. I've been using rails for a while but always went with regular css. Not sure if I'm supposed to use

<%= stylesheet_link_tag 'style' %>

I store my sass file in public/stylesheets/sass/style.sass, and di开发者_运维问答d the whole

$ sass --rails /path/to/app

thing.

Oh, I'm trying it with rails-3 beta 2 and haml 3b2. Thanks.


Nevermind, forgot to restart the development server :)

0

精彩评论

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