Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rails.root is a Pathname, no need to use File.join first.

  • Loading branch information...
commit 760fd1eb42038a64591036fc5d687afc98f272aa 1 parent 2cf0bb4
@tilsammans tilsammans authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/asset_pipeline.textile
View
2  railties/guides/source/asset_pipeline.textile
@@ -112,7 +112,7 @@ All subdirectories that exist within these three locations are added to the sear
You can add additional (fully qualified) paths to the pipeline in +application.rb+. For example:
<erb>
-config.assets.paths << File.join(Rails.root, 'app', 'assets', 'flash')
+config.assets.paths << Rails.root.join('app', 'assets', 'flash')
</erb>
h4. Coding Links to Assets
Please sign in to comment.
Something went wrong with that request. Please try again.