1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixing sass-rails helpers methods examples

This commit is contained in:
Guillermo Iguaran 2011-09-01 01:01:31 -05:00
parent 4ba35dd26b
commit 418e321b50

View file

@ -158,13 +158,13 @@ h5. CSS and SCSS
When using the asset pipeline, paths to assets must be re-written and +sass-rails+ provides +_url+ and +_path+ helpers for the following asset classes: image, font, video, audio, javascript, stylesheet.
* +image_url("rails.png")+ becomes +url(/assets/rails.png)+
* +image_path("rails.png")+ becomes +"/assets/rails.png"+.
* +image-url("rails.png")+ becomes +url(/assets/rails.png)+
* +image-path("rails.png")+ becomes +"/assets/rails.png"+.
The more generic form can also be used but the asset path and class must both be specified:
* +asset_url("rails.png", "image")+ becomes +url(/assets/rails.png)+
* +asset_path("rails.png", "image")+ becomes +"/assets/rails.png"+
* +asset-url("rails.png", image)+ becomes +url(/assets/rails.png)+
* +asset-path("rails.png", image)+ becomes +"/assets/rails.png"+
h4. Manifest Files and Directives