开发者

How to get debug mode for CSS?

开发者 https://www.devze.com 2023-04-05 06:16 出处:网络
<%= 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 t
<%= 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

精彩评论

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