Skip to content

Commit

Permalink
Change hyphen to underscore.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols authored and vijaydev committed Sep 8, 2011
1 parent 8461804 commit 7e587c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/guides/source/asset_pipeline.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

2 comments on commit 7e587c2

@pixeltrix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@ugisozols
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.