I'm on 3.2.1, with sass-rails-3.2.4 and sass-3.1.15 ...
The documentation for the asset pipeline says:
asset-url("rails.png", image) becomes url(/assets/rails.png) image-url("rails.png") becomes url(/assets/rails.png)
...
So, I made the following file:
# app/assets/stylesheets/public/omg.css.sass body background: asset-url('snake.gif', image)
and when I visit localhost: 3000 / assets / public / omg.css, I get:
body { background: asset-url("snake.gif", image); } #lol { background: image-url("snake.gif"); }
... I also tried changing the file to omg.css.scss and changing the syntax to:
# app/assets/stylesheets/public/omg.css.scss body { background: asset-url('snake.gif', image); }
but get the same results ... does anyone know why these helpers don't work?
ruby-on-rails sass ruby-on-rails-3 asset-pipeline
patrick Feb 16 '12 at 2:20 2012-02-16 02:20
source share