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

This commit is contained in:
Joost Baaij 2011-09-07 16:09:56 +03:00
parent 2cf0bb4e03
commit 760fd1eb42
1 changed files with 1 additions and 1 deletions

View File

@ -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