method
stylesheet_link_tag
v1.1.6 -
Show latest stable
-
1 note -
Class: ActionView::Helpers::AssetTagHelper
- 1.0.0 (0)
- 1.1.0 (0)
- 1.1.1 (0)
- 1.1.6 (0)
- 1.2.0 (2)
- 1.2.6 (0)
- 2.0.0 (27)
- 2.0.1 (0)
- 2.0.3 (0)
- 2.1.0 (0)
- 2.2.1 (3)
- 2.3.2 (0)
- 2.3.8 (2)
- 3.0.0 (-1)
- 3.0.5 (0)
- 3.0.7 (0)
- 3.0.9 (-1)
- 3.1.0
- 3.2.1
- 3.2.3
- 3.2.8
- 3.2.13
- What's this?
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
2 thanks
Assets hosts
You can also setup assets hosts in enviroments:
config.action_controller.asset_host = "http://your-assets-server.com"


