Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
38492590
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,发现更多精彩内容 >>
提交
38492590
编写于
1月 25, 2016
作者:
G
Genadi Samokovarov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Introduce new welcome page for new projects
As requested by David in 23233.
上级
6dfab475
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
65 addition
and
268 deletion
+65
-268
guides/assets/images/getting_started/rails_welcome.png
guides/assets/images/getting_started/rails_welcome.png
+0
-0
railties/lib/rails/templates/rails/welcome/index.html.erb
railties/lib/rails/templates/rails/welcome/index.html.erb
+61
-265
railties/test/application/routing_test.rb
railties/test/application/routing_test.rb
+1
-2
railties/test/isolation/abstract_unit.rb
railties/test/isolation/abstract_unit.rb
+3
-1
未找到文件。
guides/assets/images/getting_started/rails_welcome.png
查看替换文件 @
6dfab475
浏览文件 @
38492590
139.0 KB
|
W:
|
H:
1.0 MB
|
W:
|
H:
2-up
Swipe
Onion skin
railties/lib/rails/templates/rails/welcome/index.html.erb
浏览文件 @
38492590
此差异已折叠。
点击以展开。
railties/test/application/routing_test.rb
浏览文件 @
38492590
...
@@ -42,8 +42,7 @@ def teardown
...
@@ -42,8 +42,7 @@ def teardown
test
"root takes precedence over internal welcome controller"
do
test
"root takes precedence over internal welcome controller"
do
app
(
"development"
)
app
(
"development"
)
get
'/'
assert_welcome
get
(
'/'
)
assert_match
%r{<h1>Getting started</h1>}
,
last_response
.
body
controller
:foo
,
<<-
RUBY
controller
:foo
,
<<-
RUBY
class FooController < ApplicationController
class FooController < ApplicationController
...
...
railties/test/isolation/abstract_unit.rb
浏览文件 @
38492590
...
@@ -74,10 +74,12 @@ def get(path)
...
@@ -74,10 +74,12 @@ def get(path)
end
end
def
assert_welcome
(
resp
)
def
assert_welcome
(
resp
)
resp
=
Array
(
resp
)
assert_equal
200
,
resp
[
0
]
assert_equal
200
,
resp
[
0
]
assert_match
'text/html'
,
resp
[
1
][
"Content-Type"
]
assert_match
'text/html'
,
resp
[
1
][
"Content-Type"
]
assert_match
'charset=utf-8'
,
resp
[
1
][
"Content-Type"
]
assert_match
'charset=utf-8'
,
resp
[
1
][
"Content-Type"
]
assert
extract_body
(
resp
).
match
(
/
Welcome aboard
/
)
assert
extract_body
(
resp
).
match
(
/
Yay! You.*re on Rails!
/
)
end
end
def
assert_success
(
resp
)
def
assert_success
(
resp
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录