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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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: http://www.google.com/search?q=css+media Bala Paranj wrote:> 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. > > > >-- Lance Ivy Web Applications Developer RBS Interactive lance.ivy-eTT0+Q0rEURLdZBKzJmsdNBPR1lH4CV8@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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" On 10/13/06, Bala Paranj <bparanj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > > 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. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Sorry, I was thinking that it didn''t say how to use it. I apologize. On 10/13/06, Mark Turner <amerine-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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" > > > > On 10/13/06, Bala Paranj <bparanj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > > > > > 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. > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---