Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change hyphen to underscore.

  • Loading branch information...
commit 7e587c27f734e79b8e9d82ca0ce0056696b3121d 1 parent 8461804
@ugisozols ugisozols authored vijaydev committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/guides/source/asset_pipeline.textile
View
8 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

2 comments on commit 7e587c2

@pixeltrix
Owner

Is thiis right? I have to use the image-url helper to get fingerprints added - the underscore helpers don't add fingerprints.

@ugisozols

I just tested it and it was working either way... anyway I changed it back and added more info based on sass-rails readme.

Please sign in to comment.
Something went wrong with that request. Please try again.