Module Sprockets::Rails::LegacyAssetUrlHelper
In: lib/sprockets/rails/legacy_asset_url_helper.rb

Backports of AssetUrlHelper methods for Rails 2.x and 3.x.

Methods

Constants

URI_REGEXP = %r{^[-a-z]+://|^(?:cid|data):|^//}
ASSET_EXTENSIONS = { :javascript => '.js', :stylesheet => '.css'
ASSET_PUBLIC_DIRECTORIES = { :audio => '/audios', :font => '/fonts', :image => '/images', :javascript => '/javascripts', :stylesheet => '/stylesheets', :video => '/videos'

Public Instance methods

path_to_asset(source, options = {})

Alias for asset_path

path_to_audio(source, options = {})

Alias for audio_path

path_to_font(source, options = {})

Alias for font_path

path_to_image(source, options = {})

Alias for image_path

path_to_javascript(source, options = {})

Alias for javascript_path

path_to_stylesheet(source, options = {})

Alias for stylesheet_path

path_to_video(source, options = {})

Alias for video_path

[Validate]