Skip to content

Commit

Permalink
Merge pull request #49418 from akhilgkrishnan/html-to-erb
Browse files Browse the repository at this point in the history
Fix the wrong markdown highlighting [skip ci]
  • Loading branch information
skipkayhil committed Sep 28, 2023
2 parents af95a7d + 2e35046 commit b4d8603
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion activestorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
1. Include the Active Storage JavaScript in your application's JavaScript bundle or reference it directly.

Requiring directly without bundling through the asset pipeline in the application HTML with autostart:
```html
```erb
<%= javascript_include_tag "activestorage" %>
```
Requiring via importmap-rails without bundling through the asset pipeline in the application HTML without autostart as ESM:
Expand Down
2 changes: 1 addition & 1 deletion guides/source/action_view_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ See [the API Documentation for more information](https://api.rubyonrails.org/cla
Returns meta tags "csrf-param" and "csrf-token" with the name of the cross-site
request forgery protection parameter and token, respectively.

```html
```erb
<%= csrf_meta_tags %>
```

Expand Down
2 changes: 1 addition & 1 deletion guides/source/active_storage_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ The two processors are not fully compatible, so when migrating an existing appli
between MiniMagick and Vips, some changes have to be made if using options that are format
specific:

```rhtml
```erb
<!-- MiniMagick -->
<%= image_tag user.avatar.variant(resize_to_limit: [100, 100], format: :jpeg, sampling_factor: "4:2:0", strip: true, interlace: "JPEG", colorspace: "sRGB", quality: 80) %>
Expand Down
6 changes: 3 additions & 3 deletions guides/source/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,9 @@ ERB allows you to embed Ruby code within templates. The YAML fixture format is p

```erb
<% 1000.times do |n| %>
user_<%= n %>:
username: <%= "user#{n}" %>
email: <%= "user#{n}@example.com" %>
user_<%= n %>:
username: <%= "user#{n}" %>
email: <%= "user#{n}@example.com" %>
<% end %>
```

Expand Down

0 comments on commit b4d8603

Please sign in to comment.