aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-09-17 10:00:53 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2011-09-17 10:00:53 +0300
commit663031801cac577a88931cdfe6f062555112f370 (patch)
treeaa6075a8478f51b5f3e9d1efb2f48ff1cdd3ae26 /railties/guides/source/asset_pipeline.textile
parent27f1320fde03279c575693f504897f1a6171bc59 (diff)
downloadrails-663031801cac577a88931cdfe6f062555112f370.tar.gz
rails-663031801cac577a88931cdfe6f062555112f370.tar.bz2
rails-663031801cac577a88931cdfe6f062555112f370.zip
sass-rails helpers - hyphenated in Sass, underscored in Ruby.
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r--railties/guides/source/asset_pipeline.textile10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index e03ae736a8..586a9f46eb 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -170,15 +170,15 @@ Note that the closing tag cannot be of the style +-%>+.
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 and stylesheet.
+When using the asset pipeline, paths to assets must be re-written and +sass-rails+ provides +-url+ and +-path+ helpers (hyphenated in Sass, underscored in Ruby) for the following asset classes: image, font, video, audio, JavaScript and 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