ActionView::Helpers::AssetUrlHelper
asset_url
API docs (Rails 8.1.4.1) ↗Alias: url_to_asset
def asset_url(source, options = {})
Description
Returns the URL of an asset as a string.
Calls asset_path with the
:protocol option set to :request. Apart from the host, the result is the same as asset_path. image_url, javascript_url, stylesheet_url, audio_url, video_url and font_url call this helper with their kind as the :type option.ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params