Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add Rails 7 example with Propshaft (#113)
Browse files Browse the repository at this point in the history
This adds an example of using Rails 7 with
[Propshaft](https://github.com/rails/propshaft/blob/main/UPGRADING.md#3-migrate-from-sprockets-to-propshaft).
Thanks for this project!
  • Loading branch information
jgarber623 authored Jan 4, 2024
2 parents 9686d85 + dbfb12e commit 1ee9f46
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ In a Rails 4.2.x or 5 application:
</body>
```

In a Rails 7 application with Propshaft:

```html
<body>
<!-- Your page’s awesome content goes here! -->

<%= raw Rails.application.assets.load_path.find('icons.svg').content %>
</body>
```

Or, with PHP:

```html
Expand Down

0 comments on commit 1ee9f46

Please sign in to comment.