Fix the wrong markdown hightlighting [skip ci]
This commit is contained in:
parent
7c03e4f1b7
commit
2e35046f61
@ -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.
|
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:
|
Requiring directly without bundling through the asset pipeline in the application HTML with autostart:
|
||||||
```html
|
```erb
|
||||||
<%= javascript_include_tag "activestorage" %>
|
<%= javascript_include_tag "activestorage" %>
|
||||||
```
|
```
|
||||||
Requiring via importmap-rails without bundling through the asset pipeline in the application HTML without autostart as ESM:
|
Requiring via importmap-rails without bundling through the asset pipeline in the application HTML without autostart as ESM:
|
||||||
@ -170,7 +170,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
|
|||||||
```
|
```
|
||||||
2. Annotate file inputs with the direct upload URL.
|
2. Annotate file inputs with the direct upload URL.
|
||||||
|
|
||||||
```ruby
|
```erb
|
||||||
<%= form.file_field :attachments, multiple: true, direct_upload: true %>
|
<%= form.file_field :attachments, multiple: true, direct_upload: true %>
|
||||||
```
|
```
|
||||||
3. That's it! Uploads begin upon form submission.
|
3. That's it! Uploads begin upon form submission.
|
||||||
|
@ -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
|
Returns meta tags "csrf-param" and "csrf-token" with the name of the cross-site
|
||||||
request forgery protection parameter and token, respectively.
|
request forgery protection parameter and token, respectively.
|
||||||
|
|
||||||
```html
|
```erb
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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
|
between MiniMagick and Vips, some changes have to be made if using options that are format
|
||||||
specific:
|
specific:
|
||||||
|
|
||||||
```rhtml
|
```erb
|
||||||
<!-- MiniMagick -->
|
<!-- 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) %>
|
<%= 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) %>
|
||||||
|
|
||||||
|
@ -745,9 +745,9 @@ ERB allows you to embed Ruby code within templates. The YAML fixture format is p
|
|||||||
|
|
||||||
```erb
|
```erb
|
||||||
<% 1000.times do |n| %>
|
<% 1000.times do |n| %>
|
||||||
user_<%= n %>:
|
user_<%= n %>:
|
||||||
username: <%= "user#{n}" %>
|
username: <%= "user#{n}" %>
|
||||||
email: <%= "user#{n}@example.com" %>
|
email: <%= "user#{n}@example.com" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user