def stylesheet_link_tag(string_or_array, *args)
      files = string_or_array.is_a?(Array) ? string_or_array : [string_or_array]
      options = {
        :charset => "utf-8",
        :media => "screen, projection",
        :rel => "stylesheet",
        :type => "text/css",
      }.merge(args.extract_options!)

      files.map do |file|
        path = "#{ file.gsub(/\.css/i, "") }.css" # Append .css if needed
        path = "/stylesheets/#{path}" unless path =~ %r((^/)|(://)) # Prepend stylesheets directory to path if not a full URL or the root is specified
        options[:href] = url_for(path)
        tag(:link, options)        
      end.join("\n")
    end
def stylesheet_link_tag(string_or_array, *args)
      files = string_or_array.is_a?(Array) ? string_or_array : [string_or_array]
      options = {
        :charset => "utf-8",
        :media => "screen, projection",
        :rel => "stylesheet",
        :type => "text/css",
      }.merge(args.extract_options!)

      files.map do |file|
        path = "#{ file.gsub(/\.css/i, "") }.css" # Append .css if needed
        path = "/stylesheets/#{path}" unless path =~ %r((^/)|(://)) # Prepend stylesheets directory to path if not a full URL or the root is specified
        options[:href] = url_for(path)
        tag(:link, options)        
      end.join("\n")
    end
Accepts a single filename or an array of filenames (with or without .css extension)
 Assumes stylesheets are in public/stylesheets

   stylesheet_link_tag "styles", :media => "print"   # <link charset="utf-8" href="/stylesheets/styles.css" media="print" rel="stylesheet" type="text/css" />
   stylesheet_link_tag %w(winter summer)             # <link charset="utf-8" href="/stylesheets/winter.css" media="projection" rel="stylesheet" type="text/css" />\n<link charset="utf-8" href="/stylesheets/summer.css" media="projection" rel="stylesheet" type="text/css" />