diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-09-06 17:13:30 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-09-06 17:13:30 +0300 |
commit | 9584e15d3967a9fd4b38dca26db2de68add96dd2 (patch) | |
tree | d77f1d444215664a720c8f2d42485c65e8fd3508 | |
parent | a76c23e6bec3e418b9845010fc4c9f997abe1a01 (diff) | |
download | rails-9584e15d3967a9fd4b38dca26db2de68add96dd2.tar.gz rails-9584e15d3967a9fd4b38dca26db2de68add96dd2.tar.bz2 rails-9584e15d3967a9fd4b38dca26db2de68add96dd2.zip |
Change hyphen to underscore.
-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 1b2e81dc8b..1448776c25 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -166,13 +166,13 @@ h5. CSS and Sass 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"+ h5. JavaScript/CoffeeScript and ERB |