Module Sprockets::Rails::Helper
In: lib/sprockets/rails/helper.rb

Methods

Included Modules

ActionView::Helpers::AssetUrlHelper ActionView::Helpers::AssetTagHelper LegacyAssetTagHelper LegacyAssetUrlHelper

Classes and Modules

Class Sprockets::Rails::Helper::AbsoluteAssetPathError
Class Sprockets::Rails::Helper::AssetFilteredError

Constants

VIEW_ACCESSORS = [:assets_environment, :assets_manifest, :assets_prefix, :digest_assets, :debug_assets]

Attributes

assets  [RW] 
precompile  [RW] 
raise_runtime_errors  [RW] 

Public Class methods

Public Instance methods

Get digest for asset path.

path - String path options - Hash options

Returns String Hex digest or nil if digests are disabled.

Expand asset path to digested form.

path - String path options - Hash options

Returns String path or nil if no asset was found.

Computes the full URL to a asset in the public directory. This method checks for errors before returning path.

Override javascript tag helper to provide debugging support.

Eventually will be deprecated and replaced by source maps.

path_to_asset(source, options = {})

Alias for asset_path

Override stylesheet tag helper to provide debugging support.

Eventually will be deprecated and replaced by source maps.

Protected Instance methods

Returns true when an asset will not be available after precompile is run

Ensures the asset is included in the dependencies list.

Raise errors when source is not in the precompiled list, or incorrectly contains the assets_prefix.

Internal method to support multifile debugging. Will eventually be removed w/ Sprockets 3.x.

Enable split asset debugging. Eventually will be deprecated and replaced by source maps in Sprockets 3.x.

[Validate]