diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-01 01:01:31 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-01 01:01:31 -0500 |
commit | 418e321b506645bc0fb69116f01de41546a8cacf (patch) | |
tree | 335ebf2cbc8ef3d997c33226fd9f4af6ab2c9819 /railties/guides/source/asset_pipeline.textile | |
parent | 4ba35dd26b8f02ab851e9d8431a1fe78264e2d51 (diff) | |
download | rails-418e321b506645bc0fb69116f01de41546a8cacf.tar.gz rails-418e321b506645bc0fb69116f01de41546a8cacf.tar.bz2 rails-418e321b506645bc0fb69116f01de41546a8cacf.zip |
Fixing sass-rails helpers methods examples
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 8bcddfbb4b..9ff4f0d062 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -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 |