instance method asset_prefix

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5 Private

Available in: v3.1.12 v3.2.22.5

Signature

asset_prefix()

Override to specify an alternative prefix for asset path generation. When combined with a custom asset_environment, this can be used to implement themes that can take advantage of the asset pipeline.

If you only want to change where the assets are mounted, refer to config.assets.prefix instead.

Source
# File actionpack/lib/sprockets/helpers/rails_helper.rb, line 94
      def asset_prefix
        Rails.application.config.assets.prefix
      end

Defined in actionpack/lib/sprockets/helpers/rails_helper.rb line 94 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Sprockets::Helpers::RailsHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close