ActionView::Helpers::AssetTagHelper
picture_tag
API docs (Rails 8.1.4.1) ↗def picture_tag(*sources, &block)
Description
Creates a <picture> with <source> and <img> inside.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params