module ActionView::Helpers::AssetUrlHelper

def asset_url(source, options = {})


asset_url "application.js", host: "http://cdn.example.com" # => http://cdn.example.com/assets/application.js
asset_url "application.js" # => http://example.com/assets/application.js

All other options provided are forwarded to +asset_path+ call.

+config.action_controller.asset_host+ setting.
will be the same. If +:host+ options is set, it overwrites global
will use +asset_path+ internally, so most of their behaviors
Computes the full URL to an asset in the public directory. This
def asset_url(source, options = {})
  path_to_asset(source, options.merge(protocol: :request))
end