开发者

How to get debug mode for CSS?

<%= stylesheet_link_tag 'application', :debug => Rails.env.development? %> 

D开发者_如何转开发oesn't seem like its working. I think the asset is still being precompiled... I can verify this because firebug ain't reporting the right lines.


I suspect that you may not have this option set in your development.rb file:

config.assets.debug = true

With this on Rails will render a link (or script) tag for each file. You don't need a :debug option in your layout file unless you want to turn debug mode off (=> false).

See the Rails guide on using the pipeline in development mode for more information.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜