mirror of https://github.com/rails/rails
Make explicit the default media when calling stylesheet_tag and change the default generators.
This commit is contained in:
parent
cb06727b6c
commit
05e02deb68
|
@ -68,6 +68,9 @@ module ActionView
|
|||
# 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>
|
||||
|
|
Loading…
Reference in New Issue