Skip to content

Commit b09c862

Browse files
[ci skip] Improve the documentation for layout and rendering.
Update guides/source/layouts_and_rendering.md Co-authored-by: Hartley McGuire <[email protected]>
1 parent 4d3e291 commit b09c862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/layouts_and_rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ If you are using Rails with the [Asset Pipeline](asset_pipeline.html) enabled, t
873873

874874
A JavaScript file within a Rails application or Rails engine goes in one of three locations: `app/assets`, `lib/assets` or `vendor/assets`. These locations are explained in detail in the [Asset Organization section in the Asset Pipeline Guide](asset_pipeline.html#asset-organization).
875875

876-
You can specify a full path relative to the document root, or a URL, if you prefer. For example, to link to a JavaScript file that is inside a directory called `javascripts` inside of one of `app/assets`, `lib/assets` or `vendor/assets`, you would do this:
876+
You can specify a full path relative to the document root, or a URL, if you prefer. For example, to link to a JavaScript file `main.js` that is inside one of `app/assets/javascripts`, `lib/assets/javascripts` or `vendor/assets/javascripts`, you would do this:
877877

878878
```erb
879879
<%= javascript_include_tag "main" %>

0 commit comments

Comments
 (0)