method
stylesheet_link_tag
stylesheet_link_tag(*sources)
public
Returns a stylesheet link tag for the sources specified as arguments. If you don’t specify an extension, .css will be appended automatically. You can modify the link attributes by passing a hash as the last argument.
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"