method
stylesheet_link_tag

stylesheet_link_tag(*sources)
public
Returns a css link tag per source given as argument. Examples:
stylesheet_link_tag "style" # => <link href="/stylesheets/style.css" media="screen" rel="Stylesheet" type="text/css" /> stylesheet_link_tag "style", :media => "all" # => <link href="/stylesheets/style.css" media="all" rel="Stylesheet" type="text/css" /> stylesheet_link_tag "random.styles", "/css/stylish" # => <link href="/stylesheets/random.styles" media="screen" rel="Stylesheet" type="text/css" /> <link href="/css/stylish.css" media="screen" rel="Stylesheet" type="text/css" />
Register or
log in
to add new notes.
slawosz -
April 6, 2009

3 thanks
Assets hosts
You can also setup assets hosts in enviroments:
config.action_controller.asset_host = "http://your-assets-server.com"