提交 9b7be788 编写于 作者: Y Yehuda Katz

Merge pull request #3724 from marcandre/media_default

stylesheet_tag default's media is "screen"
......@@ -68,6 +68,9 @@ def stylesheet_path(source)
# Returns a stylesheet link tag for the sources specified as arguments. If
# you don't specify an extension, <tt>.css</tt> will be appended automatically.
# You can modify the link attributes by passing a hash as the last argument.
# For historical reasons, the 'media' attribute will always be present and defaults
# to "screen", so you must explicitely set it to "all" for the stylesheet(s) to
# apply to all media types.
#
# ==== Examples
# stylesheet_link_tag "style" # =>
......
......@@ -2,7 +2,7 @@
<html>
<head>
<title>Blog</title>
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
......
......@@ -2,7 +2,7 @@
<html>
<head>
<title><%= camelized %></title>
<%%= stylesheet_link_tag "application" %>
<%%= stylesheet_link_tag "application", :media => "all" %>
<%%= javascript_include_tag "application" %>
<%%= csrf_meta_tags %>
</head>
......
......@@ -2,7 +2,7 @@
<html>
<head>
<title><%= camelized %></title>
<%%= stylesheet_link_tag "<%= name %>/application" %>
<%%= stylesheet_link_tag "<%= name %>/application", :media => "all" %>
<%%= javascript_include_tag "<%= name %>/application" %>
<%%= csrf_meta_tags %>
</head>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册