path_to_audio

path_to_audio(source, options = {}) Instance Public methods Alias for: audio_path

path_to_asset

path_to_asset(source, options = {}) Instance Public methods Alias for: asset_path

javascript_url

javascript_url(source, options = {}) Instance Public methods Computes the full URL to a javascript asset in the public javascripts directory. This will use javascript_path internally, so most of their behaviors will be the same. url_to_javascript

javascript_path

javascript_path(source, options = {}) Instance Public methods Computes the path to a javascript asset in the public javascripts directory. If the source filename has no extension, .js will be appended (except for explicit URIs) Full paths from the document root will be passed through. Used internally by javascript_include_tag to build the script path. javascript_path "xmlhr" # => /javascripts/xmlhr.js javascript_path "dir/xmlhr.js"

image_url

image_url(source, options = {}) Instance Public methods Computes the full URL to an image asset. This will use image_path internally, so most of their behaviors will be the same. url_to_image

image_path

image_path(source, options = {}) Instance Public methods Computes the path to an image asset. Full paths from the document root will be passed through. Used internally by image_tag to build the image path: image_path("edit") # => "/assets/edit" image_path("edit.png") # => "/assets/edit.png" image_path("icons/edit.png") # => "/assets/icons/edit.png" image_path("/icons/e

font_url

font_url(source, options = {}) Instance Public methods Computes the full URL to a font asset. This will use font_path internally, so most of their behaviors will be the same. url_to_font

font_path

font_path(source, options = {}) Instance Public methods Computes the path to a font asset. Full paths from the document root will be passed through. font_path("font") # => /assets/font font_path("font.ttf") # => /assets/font.ttf font_path("dir/font.ttf") # => /assets/dir/font.ttf font_path("/dir/font.ttf") # => /dir/font.ttf

compute_asset_path

compute_asset_path(source, options = {}) Instance Public methods Computes asset path to public directory. Plugins and extensions can override this method to point to custom assets or generate digested paths or query strings.

compute_asset_host

compute_asset_host(source = "", options = {}) Instance Public methods Pick an asset host for this source. Returns nil if no host is set, the host if no wildcard is set, the host interpolated with the numbers 0-3 if it contains %d (the number is the source hash mod 4), or the value returned from invoking call on an object responding to call (proc or otherwise).