module ActionView::Helpers::AssetUrlHelper

def compute_asset_path(source, options = {})

or generate digested paths or query strings.
extensions can override this method to point to custom assets
Computes asset path to public directory. Plugins and
def compute_asset_path(source, options = {})
  dir = ASSET_PUBLIC_DIRECTORIES[options[:type]] || ""
  File.join(dir, source)
end