Skip to content

Commit d127335

Browse files
Merge pull request rails#50199 from apoorv1316/improve-action-view-helper-guide
Improve action view helpers guide [ci skip] Co-authored-by: Adrianna Chang <[email protected]>
2 parents 1007cc8 + 282d112 commit d127335

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

guides/source/action_view_helpers.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Action View Helpers
55

66
After reading this guide, you will know:
77

8-
* How to format dates, strings and numbers
8+
* How to format dates, strings, and numbers
99
* How to link to images, videos, stylesheets, etc...
1010
* How to sanitize content
1111
* How to localize content
@@ -138,7 +138,8 @@ See the [API Documentation](https://api.rubyonrails.org/classes/ActionView/Helpe
138138

139139
#### picture_tag
140140

141-
Returns an HTML picture tag for the source. It supports passing a String, an Array or a Block.
141+
Returns an HTML picture tag for the source. It supports passing a String, an
142+
Array, or a Block.
142143

143144
```ruby
144145
picture_tag("icon.webp", "icon.png")
@@ -158,7 +159,8 @@ See the [API Documentation](https://api.rubyonrails.org/classes/ActionView/Helpe
158159

159160
#### preload_link_tag
160161

161-
Returns a link tag that browsers can use to preload the source. The source can be the path of a resource managed by asset pipeline, a full path, or an URI.
162+
Returns a link tag that browsers can use to preload the source. The source can
163+
be the path of a resource managed by the asset pipeline, a full path, or a URI.
162164

163165
```ruby
164166
preload_link_tag "application.css"

0 commit comments

Comments
 (0)