1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Make explicit the default media when calling stylesheet_tag and change the default generators.

This commit is contained in:
Marc-Andre Lafortune 2011-11-22 15:16:23 -05:00
parent cb06727b6c
commit 05e02deb68
4 changed files with 6 additions and 3 deletions

View file

@ -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" # =>

View file

@ -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>

View file

@ -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>

View file

@ -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>