mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #44494 from ghousemohamed/patch-10
This commit is contained in:
commit
c21c4139e1
2 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ Helpers that do something else, like `cache` or `content_for`, are not affected
|
|||
#### Other Changes
|
||||
|
||||
* You no longer need to call `h(string)` to escape HTML output, it is on by default in all view templates. If you want the unescaped string, call `raw(string)`.
|
||||
* Helpers now output HTML 5 by default.
|
||||
* Helpers now output HTML5 by default.
|
||||
* Form label helper now pulls values from I18n with a single value, so `f.label :name` will pull the `:name` translation.
|
||||
* I18n select label on should now be :en.helpers.select instead of :en.support.select.
|
||||
* You no longer need to place a minus sign at the end of a Ruby interpolation inside an ERB template to remove the trailing carriage return in the HTML output.
|
||||
|
|
|
@ -966,7 +966,7 @@ In addition to the above special tags, you can supply a final hash of standard H
|
|||
|
||||
#### Linking to Videos with the `video_tag`
|
||||
|
||||
The [`video_tag`][] helper builds an HTML 5 `<video>` tag to the specified file. By default, files are loaded from `public/videos`.
|
||||
The [`video_tag`][] helper builds an HTML5 `<video>` tag to the specified file. By default, files are loaded from `public/videos`.
|
||||
|
||||
```erb
|
||||
<%= video_tag "movie.ogg" %>
|
||||
|
@ -1005,7 +1005,7 @@ This will produce:
|
|||
|
||||
#### Linking to Audio Files with the `audio_tag`
|
||||
|
||||
The [`audio_tag`][] helper builds an HTML 5 `<audio>` tag to the specified file. By default, files are loaded from `public/audios`.
|
||||
The [`audio_tag`][] helper builds an HTML5 `<audio>` tag to the specified file. By default, files are loaded from `public/audios`.
|
||||
|
||||
```erb
|
||||
<%= audio_tag "music.mp3" %>
|
||||
|
|
Loading…
Reference in a new issue