Flowdock
method

stylesheet_link_tag

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: RailsHelper
stylesheet_link_tag(*sources) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/sprockets/helpers/rails_helper.rb, line 43
      def stylesheet_link_tag(*sources)
        options = sources.extract_options!
        debug = options.key?(:debug) ? options.delete(:debug) : debug_assets?
        body  = options.key?(:body)  ? options.delete(:body)  : false
        media = options.key?(:media) ? options.delete(:media) : "screen"

        sources.collect do |source|
          if debug && asset = asset_paths.asset_for(source, 'css')
            asset.to_a.map { |dep|
              stylesheet_link_tag(dep, :media => media, :debug => false, :body => true)
            }.join("\n").html_safe
          else
            tag_options = {
              'rel'   => "stylesheet",
              'type'  => "text/css",
              'media' => media,
              'href'  => asset_path(source, 'css', body, :request)
            }.merge(options.stringify_keys)

            tag 'link', tag_options
          end
        end.join("\n").html_safe
      end
Register or log in to add new notes.