developer

Using fonts with Rails asset pipeline

Question: ❓❓❓ I have some fonts being configured in my Scss file like so: @font-face { font-family: 'Icomoon'; src: asset-url('icoMoon.eot?#iefix', font) format('embedded-opentype'), asset-url('icoMoon.woff', font) format('woff'), asset-url('icoMoon.ttf', font) format('truetype'), asset-url('icoMoon.svg#Icomoon', font) format('svg'); } The actual font file are stored in /app/assets/fonts/ I have added config.assets.paths << Rails.root.join("app", "assets", "fonts") to my Read more…

By admin, ago
developer

How to disable logging of asset pipeline (sprockets) messages in Rails 3.1?

Question: ❓❓❓ Sprockets tends to be quite verbose in the (dev) log by default under Rails 3.1 (RC1): Started GET "/assets/application.css" for 127.0.0.1 at 2011-06-10 17:30:45 -0400 Compiled app/assets/stylesheets/application.css.scss (5ms) (pid 6303) Started GET "/assets/application.js" for 127.0.0.1 at 2011-06-10 17:30:45 -0400 Compiled app/assets/stylesheets/default.css.scss (15ms) (pid 6303) ... Started GET "/assets/default/header_bg.gif" Read more…

By admin, ago