stylesheet_link_tag

The API documentation found at http://rubyonrails.org/api/classes/ActionView/Helpers/AssetTagHelper.html

does not explain the media option. Can someone please explain this option? TIA.

It's usually used for targetting stylesheets to various situations. You can have stylesheets that are used when printing, stylesheets that are used for mobile devices, etc.

Lots more here: css media - Google Search

Bala Paranj wrote:

I believe it does (excerpt):

stylesheet_link_tag "style", :media => "all" # =>
    <link href="/stylesheets/style.css" media="all" rel="Stylesheet" type="text/css" />

So if I wanted a print stylesheet i would use

stylesheet_link_tag "style", :media => "print"

Sorry, I was thinking that it didn’t say how to use it. I apologize.