Skip to content

Commit

Permalink
[ci-skip] javascript_link_tag -> javascript_include_tag in Webpacker …
Browse files Browse the repository at this point in the history
…guide
  • Loading branch information
gmcgibbon committed Jan 27, 2021
1 parent bcc6c4b commit f2f1c8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions guides/source/webpacker.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ You should choose webpacker over Sprockets on a new project if you want to use N

If you are familiar with Sprockets, the following guide might give you some idea of how to translate. Please note that each tool has a slightly different structure, and the concepts don't directly map onto each other.

|Task | Sprockets | Webpacker |
|------------------|-------------------|-------------------|
|Attach JavaScript |javascript_link_tag|javascript_pack_tag|
|Attach CSS |stylesheet_link_tag|stylesheet_pack_tag|
|Link to an image |image_url |image_pack_tag |
|Link to an asset |asset_url |asset_pack_tag |
|Require a script |//= require |import or require |
|Task | Sprockets | Webpacker |
|------------------|----------------------|-------------------|
|Attach JavaScript |javascript_include_tag|javascript_pack_tag|
|Attach CSS |stylesheet_link_tag |stylesheet_pack_tag|
|Link to an image |image_url |image_pack_tag |
|Link to an asset |asset_url |asset_pack_tag |
|Require a script |//= require |import or require |

Installing Webpacker
--------------------
Expand Down

0 comments on commit f2f1c8f

Please sign in to comment.