Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
9b7be788
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9b7be788
编写于
11月 22, 2011
作者:
Y
Yehuda Katz
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3724 from marcandre/media_default
stylesheet_tag default's media is "screen"
上级
b13b49cc
05e02deb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
3 deletion
+6
-3
actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
..._view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
+3
-0
railties/guides/code/getting_started/app/views/layouts/application.html.erb
...de/getting_started/app/views/layouts/application.html.erb
+1
-1
railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
...s/app/templates/app/views/layouts/application.html.erb.tt
+1
-1
railties/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt
...emplates/app/views/layouts/%name%/application.html.erb.tt
+1
-1
未找到文件。
actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
浏览文件 @
9b7be788
...
@@ -68,6 +68,9 @@ def stylesheet_path(source)
...
@@ -68,6 +68,9 @@ def stylesheet_path(source)
# Returns a stylesheet link tag for the sources specified as arguments. If
# 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 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.
# 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
# ==== Examples
# stylesheet_link_tag "style" # =>
# stylesheet_link_tag "style" # =>
...
...
railties/guides/code/getting_started/app/views/layouts/application.html.erb
浏览文件 @
9b7be788
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<title>
Blog
</title>
<title>
Blog
</title>
<%=
stylesheet_link_tag
"application"
%>
<%=
stylesheet_link_tag
"application"
,
:media
=>
"all"
%>
<%=
javascript_include_tag
"application"
%>
<%=
javascript_include_tag
"application"
%>
<%=
csrf_meta_tags
%>
<%=
csrf_meta_tags
%>
</head>
</head>
...
...
railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
浏览文件 @
9b7be788
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<title><
%=
camelized
%
></title>
<title><
%=
camelized
%
></title>
<
%%=
stylesheet_link_tag
"
application
"
%
>
<
%%=
stylesheet_link_tag
"
application
"
,
:media =
>
"all"
%
>
<
%%=
javascript_include_tag
"
application
"
%
>
<
%%=
javascript_include_tag
"
application
"
%
>
<
%%=
csrf_meta_tags
%
>
<
%%=
csrf_meta_tags
%
>
</head>
</head>
...
...
railties/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt
浏览文件 @
9b7be788
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<title><
%=
camelized
%
></title>
<title><
%=
camelized
%
></title>
<
%%=
stylesheet_link_tag
"<%=
name
%
>
/application" %>
<
%%=
stylesheet_link_tag
"<%=
name
%
>
/application"
, :media => "all"
%>
<
%%=
javascript_include_tag
"<%=
name
%
>
/application" %>
<
%%=
javascript_include_tag
"<%=
name
%
>
/application" %>
<
%%=
csrf_meta_tags
%
>
<
%%=
csrf_meta_tags
%
>
</head>
</head>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录