method

asset_path

rails latest stable - Class: Sprockets::Helpers::RailsHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

asset_path(source, options = {})
public

No documentation available.

# File actionpack/lib/sprockets/helpers/rails_helper.rb, line 54
      def asset_path(source, options = {})
        source = source.logical_path if source.respond_to?(:logical_path)
        path = asset_paths.compute_public_path(source, asset_prefix, options.merge(:body => true))
        options[:body] ? "#{path}?body=1" : path
      end