Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in documentation examples #45272

Merged
merged 1 commit into from
Jun 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions actionview/lib/action_view/helpers/asset_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def image_tag(source, options = {})
# Active Storage blobs (videos that are uploaded by the users of your app):
#
# video_tag(user.intro_video)
# # => <img src="/rails/active_storage/blobs/.../intro_video.mp4" />
# # => <video src="/rails/active_storage/blobs/.../intro_video.mp4"></video>
def video_tag(*sources)
options = sources.extract_options!.symbolize_keys
public_poster_folder = options.delete(:poster_skip_pipeline)
Expand Down Expand Up @@ -492,7 +492,7 @@ def video_tag(*sources)
# Active Storage blobs (audios that are uploaded by the users of your app):
#
# audio_tag(user.name_pronunciation_audio)
# # => <img src="/rails/active_storage/blobs/.../name_pronunciation_audio.mp4" />
# # => <audio src="/rails/active_storage/blobs/.../name_pronunciation_audio.mp3"></audio>
def audio_tag(*sources)
multiple_sources_tag_builder("audio", sources)
end
Expand Down