Skip to content

Commit 4c2c8f8

Browse files
authored
Merge pull request rails#51312 from debashiscodes/improve-layout-and-rendering-doc
Improve the documentation for layout and rendering(layouts_and_rendering.md).
2 parents 4d3e291 + b09c862 commit 4c2c8f8

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)