Stylesheet disabled

Hi,

I want to use stylesheet_link_tag to produce the following link

<link href="/stylesheets/printer_friendly.css" rel="stylesheet" title="print" type="text/css" DISABLED/>

The closest I get is

<%= stylesheet_link_tag "printer_friendly", :title => 'print'%>

but I don't know how to put the DISABLED option.... anyone?

Thank you

Ricardo Acras wrote:

I want to use stylesheet_link_tag to produce the following link

<link href="/stylesheets/printer_friendly.css" rel="stylesheet" title="print" type="text/css" DISABLED/>

Modern HTML should run as close to XHTML as possible, and that DISABLED attribute is not well-formed XML. You need disabled='disabled'. All argumentless HTML attributes should upgrade along that pattern.

Note that your link is indeed well-formed XML in its last two characters: />

<%= stylesheet_link_tag "printer_friendly", :title => 'print'%>

At a guess, add :html => { :disabled=>'disabled' }