Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
acc8e259
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,体验更适合开发者的 AI 搜索 >>
提交
acc8e259
编写于
8月 05, 2013
作者:
Ł
Łukasz Strzałkowski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move render_test to AV
上级
aa2d0038
变更
93
展开全部
隐藏空白更改
内联
并排
Showing
93 changed file
with
1950 addition
and
1420 deletion
+1950
-1420
actionpack/test/controller/render_test.rb
actionpack/test/controller/render_test.rb
+228
-1420
actionview/test/actionpack/render_test.rb
actionview/test/actionpack/render_test.rb
+1572
-0
actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb
.../fixtures/actionpack/bad_customers/_bad_customer.html.erb
+1
-0
actionview/test/fixtures/actionpack/customers/_customer.html.erb
...iew/test/fixtures/actionpack/customers/_customer.html.erb
+1
-0
actionview/test/fixtures/actionpack/fun/games/_form.erb
actionview/test/fixtures/actionpack/fun/games/_form.erb
+1
-0
actionview/test/fixtures/actionpack/fun/games/hello_world.erb
...onview/test/fixtures/actionpack/fun/games/hello_world.erb
+1
-0
actionview/test/fixtures/actionpack/good_customers/_good_customer.html.erb
...ixtures/actionpack/good_customers/_good_customer.html.erb
+1
-0
actionview/test/fixtures/actionpack/hello.html
actionview/test/fixtures/actionpack/hello.html
+1
-0
actionview/test/fixtures/actionpack/layouts/_customers.erb
actionview/test/fixtures/actionpack/layouts/_customers.erb
+1
-0
actionview/test/fixtures/actionpack/layouts/block_with_layout.erb
...ew/test/fixtures/actionpack/layouts/block_with_layout.erb
+3
-0
actionview/test/fixtures/actionpack/layouts/builder.builder
actionview/test/fixtures/actionpack/layouts/builder.builder
+3
-0
actionview/test/fixtures/actionpack/layouts/partial_with_layout.erb
.../test/fixtures/actionpack/layouts/partial_with_layout.erb
+3
-0
actionview/test/fixtures/actionpack/layouts/standard.html.erb
...onview/test/fixtures/actionpack/layouts/standard.html.erb
+1
-0
actionview/test/fixtures/actionpack/layouts/talk_from_action.erb
...iew/test/fixtures/actionpack/layouts/talk_from_action.erb
+2
-0
actionview/test/fixtures/actionpack/layouts/with_html_partial.html.erb
...st/fixtures/actionpack/layouts/with_html_partial.html.erb
+1
-0
actionview/test/fixtures/actionpack/layouts/xhr.html.erb
actionview/test/fixtures/actionpack/layouts/xhr.html.erb
+2
-0
actionview/test/fixtures/actionpack/layouts/yield.erb
actionview/test/fixtures/actionpack/layouts/yield.erb
+2
-0
actionview/test/fixtures/actionpack/quiz/questions/_question.html.erb
...est/fixtures/actionpack/quiz/questions/_question.html.erb
+1
-0
actionview/test/fixtures/actionpack/shared.html.erb
actionview/test/fixtures/actionpack/shared.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_changing_priority.html.erb
...test/fixtures/actionpack/test/_changing_priority.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_changing_priority.json.erb
...test/fixtures/actionpack/test/_changing_priority.json.erb
+1
-0
actionview/test/fixtures/actionpack/test/_counter.html.erb
actionview/test/fixtures/actionpack/test/_counter.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_customer.erb
actionview/test/fixtures/actionpack/test/_customer.erb
+1
-0
actionview/test/fixtures/actionpack/test/_customer_counter.erb
...nview/test/fixtures/actionpack/test/_customer_counter.erb
+1
-0
actionview/test/fixtures/actionpack/test/_customer_counter_with_as.erb
...st/fixtures/actionpack/test/_customer_counter_with_as.erb
+1
-0
actionview/test/fixtures/actionpack/test/_customer_greeting.erb
...view/test/fixtures/actionpack/test/_customer_greeting.erb
+1
-0
actionview/test/fixtures/actionpack/test/_customer_with_var.erb
...view/test/fixtures/actionpack/test/_customer_with_var.erb
+1
-0
actionview/test/fixtures/actionpack/test/_directory/_partial_with_locales.html.erb
...actionpack/test/_directory/_partial_with_locales.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_first_json_partial.json.erb
...est/fixtures/actionpack/test/_first_json_partial.json.erb
+1
-0
actionview/test/fixtures/actionpack/test/_form.erb
actionview/test/fixtures/actionpack/test/_form.erb
+1
-0
actionview/test/fixtures/actionpack/test/_hash_greeting.erb
actionview/test/fixtures/actionpack/test/_hash_greeting.erb
+1
-0
actionview/test/fixtures/actionpack/test/_hash_object.erb
actionview/test/fixtures/actionpack/test/_hash_object.erb
+2
-0
actionview/test/fixtures/actionpack/test/_hello.builder
actionview/test/fixtures/actionpack/test/_hello.builder
+1
-0
actionview/test/fixtures/actionpack/test/_json_change_priority.json.erb
...t/fixtures/actionpack/test/_json_change_priority.json.erb
+0
-0
actionview/test/fixtures/actionpack/test/_labelling_form.erb
actionview/test/fixtures/actionpack/test/_labelling_form.erb
+1
-0
actionview/test/fixtures/actionpack/test/_layout_for_partial.html.erb
...est/fixtures/actionpack/test/_layout_for_partial.html.erb
+3
-0
actionview/test/fixtures/actionpack/test/_partial.erb
actionview/test/fixtures/actionpack/test/_partial.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial.html.erb
actionview/test/fixtures/actionpack/test/_partial.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial.js.erb
actionview/test/fixtures/actionpack/test/_partial.js.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial_for_use_in_layout.html.erb
...tures/actionpack/test/_partial_for_use_in_layout.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial_html_erb.html.erb
.../test/fixtures/actionpack/test/_partial_html_erb.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial_name_local_variable.erb
...fixtures/actionpack/test/_partial_name_local_variable.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial_only.erb
actionview/test/fixtures/actionpack/test/_partial_only.erb
+1
-0
actionview/test/fixtures/actionpack/test/_partial_only_html.html
...iew/test/fixtures/actionpack/test/_partial_only_html.html
+1
-0
actionview/test/fixtures/actionpack/test/_partial_with_partial.erb
...w/test/fixtures/actionpack/test/_partial_with_partial.erb
+2
-0
actionview/test/fixtures/actionpack/test/_person.erb
actionview/test/fixtures/actionpack/test/_person.erb
+2
-0
actionview/test/fixtures/actionpack/test/_raise_indentation.html.erb
...test/fixtures/actionpack/test/_raise_indentation.html.erb
+13
-0
actionview/test/fixtures/actionpack/test/_second_json_partial.json.erb
...st/fixtures/actionpack/test/_second_json_partial.json.erb
+1
-0
actionview/test/fixtures/actionpack/test/action_talk_to_layout.erb
...w/test/fixtures/actionpack/test/action_talk_to_layout.erb
+2
-0
actionview/test/fixtures/actionpack/test/calling_partial_with_layout.html.erb
...ures/actionpack/test/calling_partial_with_layout.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/capturing.erb
actionview/test/fixtures/actionpack/test/capturing.erb
+4
-0
actionview/test/fixtures/actionpack/test/change_priority.html.erb
...ew/test/fixtures/actionpack/test/change_priority.html.erb
+2
-0
actionview/test/fixtures/actionpack/test/content_for.erb
actionview/test/fixtures/actionpack/test/content_for.erb
+1
-0
actionview/test/fixtures/actionpack/test/content_for_concatenated.erb
...est/fixtures/actionpack/test/content_for_concatenated.erb
+3
-0
actionview/test/fixtures/actionpack/test/content_for_with_parameter.erb
...t/fixtures/actionpack/test/content_for_with_parameter.erb
+2
-0
actionview/test/fixtures/actionpack/test/dot.directory/render_file_with_ivar.erb
...s/actionpack/test/dot.directory/render_file_with_ivar.erb
+1
-0
actionview/test/fixtures/actionpack/test/formatted_html_erb.html.erb
...test/fixtures/actionpack/test/formatted_html_erb.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/formatted_xml_erb.builder
...w/test/fixtures/actionpack/test/formatted_xml_erb.builder
+1
-0
actionview/test/fixtures/actionpack/test/formatted_xml_erb.html.erb
.../test/fixtures/actionpack/test/formatted_xml_erb.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb
...w/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb
+1
-0
actionview/test/fixtures/actionpack/test/greeting.html.erb
actionview/test/fixtures/actionpack/test/greeting.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/greeting.xml.erb
actionview/test/fixtures/actionpack/test/greeting.xml.erb
+1
-0
actionview/test/fixtures/actionpack/test/hello,world.erb
actionview/test/fixtures/actionpack/test/hello,world.erb
+1
-0
actionview/test/fixtures/actionpack/test/hello.builder
actionview/test/fixtures/actionpack/test/hello.builder
+4
-0
actionview/test/fixtures/actionpack/test/hello/hello.erb
actionview/test/fixtures/actionpack/test/hello/hello.erb
+1
-0
actionview/test/fixtures/actionpack/test/hello_world.erb
actionview/test/fixtures/actionpack/test/hello_world.erb
+1
-0
actionview/test/fixtures/actionpack/test/hello_world_container.builder
...st/fixtures/actionpack/test/hello_world_container.builder
+3
-0
actionview/test/fixtures/actionpack/test/hello_world_from_rxml.builder
...st/fixtures/actionpack/test/hello_world_from_rxml.builder
+3
-0
actionview/test/fixtures/actionpack/test/hello_world_with_layout_false.erb
...ixtures/actionpack/test/hello_world_with_layout_false.erb
+1
-0
actionview/test/fixtures/actionpack/test/hello_world_with_partial.html.erb
...ixtures/actionpack/test/hello_world_with_partial.html.erb
+2
-0
actionview/test/fixtures/actionpack/test/hello_xml_world.builder
...iew/test/fixtures/actionpack/test/hello_xml_world.builder
+11
-0
actionview/test/fixtures/actionpack/test/html_template.html.erb
...view/test/fixtures/actionpack/test/html_template.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/hyphen-ated.erb
actionview/test/fixtures/actionpack/test/hyphen-ated.erb
+1
-0
actionview/test/fixtures/actionpack/test/implicit_content_type.atom.builder
...xtures/actionpack/test/implicit_content_type.atom.builder
+2
-0
actionview/test/fixtures/actionpack/test/list.erb
actionview/test/fixtures/actionpack/test/list.erb
+1
-0
actionview/test/fixtures/actionpack/test/non_erb_block_content_for.builder
...ixtures/actionpack/test/non_erb_block_content_for.builder
+4
-0
actionview/test/fixtures/actionpack/test/potential_conflicts.erb
...iew/test/fixtures/actionpack/test/potential_conflicts.erb
+4
-0
actionview/test/fixtures/actionpack/test/proper_block_detection.erb
.../test/fixtures/actionpack/test/proper_block_detection.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_file_from_template.html.erb
...xtures/actionpack/test/render_file_from_template.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_file_with_ivar.erb
...w/test/fixtures/actionpack/test/render_file_with_ivar.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_file_with_locals.erb
...test/fixtures/actionpack/test/render_file_with_locals.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_file_with_locals_and_default.erb
...s/actionpack/test/render_file_with_locals_and_default.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.da.html.erb
...ender_implicit_html_template_from_xhr_request.da.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.html.erb
...t/render_implicit_html_template_from_xhr_request.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_implicit_js_template_without_layout.js.erb
...ck/test/render_implicit_js_template_without_layout.js.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_partial_inside_directory.html.erb
.../actionpack/test/render_partial_inside_directory.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_to_string_test.erb
...w/test/fixtures/actionpack/test/render_to_string_test.erb
+1
-0
actionview/test/fixtures/actionpack/test/render_two_partials.html.erb
...est/fixtures/actionpack/test/render_two_partials.html.erb
+2
-0
actionview/test/fixtures/actionpack/test/using_layout_around_block.html.erb
...xtures/actionpack/test/using_layout_around_block.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/with_html_partial.html.erb
.../test/fixtures/actionpack/test/with_html_partial.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/with_partial.html.erb
...nview/test/fixtures/actionpack/test/with_partial.html.erb
+1
-0
actionview/test/fixtures/actionpack/test/with_partial.text.erb
...nview/test/fixtures/actionpack/test/with_partial.text.erb
+1
-0
actionview/test/fixtures/actionpack/test/with_xml_template.html.erb
.../test/fixtures/actionpack/test/with_xml_template.html.erb
+1
-0
未找到文件。
actionpack/test/controller/render_test.rb
浏览文件 @
acc8e259
此差异已折叠。
点击以展开。
actionview/test/actionpack/render_test.rb
0 → 100644
浏览文件 @
acc8e259
此差异已折叠。
点击以展开。
actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
greeting
%>
bad customer:
<%=
bad_customer
.
name
%><%=
bad_customer_counter
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/customers/_customer.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
greeting
%>
:
<%=
customer
.
name
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/fun/games/_form.erb
0 → 100644
浏览文件 @
acc8e259
<%=
form
.
label
:title
%>
actionview/test/fixtures/actionpack/fun/games/hello_world.erb
0 → 100644
浏览文件 @
acc8e259
Living in a nested world
\ No newline at end of file
actionview/test/fixtures/actionpack/good_customers/_good_customer.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
greeting
%>
good customer:
<%=
good_customer
.
name
%><%=
good_customer_counter
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/hello.html
0 → 100644
浏览文件 @
acc8e259
Hello world!
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/_customers.erb
0 → 100644
浏览文件 @
acc8e259
<title>
<%=
yield
Struct
.
new
(
:name
).
new
(
"David"
)
%>
</title>
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/block_with_layout.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
(
:layout
=>
"layout_for_partial"
,
:locals
=>
{
:name
=>
"Anthony"
})
do
%>
Inside from first block in layout
<%
"Return value should be discarded"
%><%
end
%>
<%=
yield
%>
<%=
render
(
:layout
=>
"layout_for_partial"
,
:locals
=>
{
:name
=>
"Ramm"
})
do
%>
Inside from second block in layout
<%
end
%>
actionview/test/fixtures/actionpack/layouts/builder.builder
0 → 100644
浏览文件 @
acc8e259
xml.wrapper do
xml << yield
end
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/partial_with_layout.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
(
:layout
=>
"layout_for_partial"
,
:partial
=>
"partial_for_use_in_layout"
,
:locals
=>
{
:name
=>
'Anthony'
}
)
%>
<%=
yield
%>
<%=
render
(
:layout
=>
"layout_for_partial"
,
:partial
=>
"partial_for_use_in_layout"
,
:locals
=>
{
:name
=>
'Ramm'
}
)
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/standard.html.erb
0 → 100644
浏览文件 @
acc8e259
<html>
<%=
yield
%><%=
@variable_for_layout
%>
</html>
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/talk_from_action.erb
0 → 100644
浏览文件 @
acc8e259
<title>
<%=
@title
||
yield
(
:title
)
%>
</title>
<%=
yield
-%>
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/with_html_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:partial
=>
"partial_only_html"
%><%=
yield
%>
actionview/test/fixtures/actionpack/layouts/xhr.html.erb
0 → 100644
浏览文件 @
acc8e259
XHR!
<%=
yield
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/layouts/yield.erb
0 → 100644
浏览文件 @
acc8e259
<title>
<%=
yield
:title
%>
</title>
<%=
yield
%>
actionview/test/fixtures/actionpack/quiz/questions/_question.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
question
.
name
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/shared.html.erb
0 → 100644
浏览文件 @
acc8e259
Elastica
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_changing_priority.html.erb
0 → 100644
浏览文件 @
acc8e259
HTML
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_changing_priority.json.erb
0 → 100644
浏览文件 @
acc8e259
JSON
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_counter.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
counter_counter
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_customer.erb
0 → 100644
浏览文件 @
acc8e259
Hello:
<%=
customer
.
name
rescue
"Anonymous"
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_customer_counter.erb
0 → 100644
浏览文件 @
acc8e259
<%=
customer_counter
.
name
%><%=
customer_counter_counter
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_customer_counter_with_as.erb
0 → 100644
浏览文件 @
acc8e259
<%=
client
.
name
%><%=
client_counter
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_customer_greeting.erb
0 → 100644
浏览文件 @
acc8e259
<%=
greeting
%>
:
<%=
customer_greeting
.
name
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_customer_with_var.erb
0 → 100644
浏览文件 @
acc8e259
<%=
customer
.
name
%>
<%=
customer
.
name
%>
<%=
customer
.
name
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_directory/_partial_with_locales.html.erb
0 → 100644
浏览文件 @
acc8e259
Hello
<%=
name
%>
actionview/test/fixtures/actionpack/test/_first_json_partial.json.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:partial
=>
"test/second_json_partial"
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_form.erb
0 → 100644
浏览文件 @
acc8e259
<%=
form
.
label
:title
%>
actionview/test/fixtures/actionpack/test/_hash_greeting.erb
0 → 100644
浏览文件 @
acc8e259
<%=
greeting
%>
:
<%=
hash_greeting
[
:first_name
]
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_hash_object.erb
0 → 100644
浏览文件 @
acc8e259
<%=
hash_object
[
:first_name
]
%>
<%=
hash_object
[
:first_name
].
reverse
%>
actionview/test/fixtures/actionpack/test/_hello.builder
0 → 100644
浏览文件 @
acc8e259
xm.hello
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_json_change_priority.json.erb
0 → 100644
浏览文件 @
acc8e259
actionview/test/fixtures/actionpack/test/_labelling_form.erb
0 → 100644
浏览文件 @
acc8e259
<%=
labelling_form
.
label
:title
%>
actionview/test/fixtures/actionpack/test/_layout_for_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
Before (
<%=
name
%>
)
<%=
yield
%>
After
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial.erb
0 → 100644
浏览文件 @
acc8e259
invalid
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
partial html
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial.js.erb
0 → 100644
浏览文件 @
acc8e259
partial js
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial_for_use_in_layout.html.erb
0 → 100644
浏览文件 @
acc8e259
Inside from partial (
<%=
name
%>
)
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial_html_erb.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
"partial.html.erb"
%>
actionview/test/fixtures/actionpack/test/_partial_name_local_variable.erb
0 → 100644
浏览文件 @
acc8e259
<%=
partial_name_local_variable
%>
actionview/test/fixtures/actionpack/test/_partial_only.erb
0 → 100644
浏览文件 @
acc8e259
only partial
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial_only_html.html
0 → 100644
浏览文件 @
acc8e259
only html partial
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_partial_with_partial.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
'test/partial'
%>
partial with partial
actionview/test/fixtures/actionpack/test/_person.erb
0 → 100644
浏览文件 @
acc8e259
Second:
<%=
name
%>
Third:
<%=
@name
%>
actionview/test/fixtures/actionpack/test/_raise_indentation.html.erb
0 → 100644
浏览文件 @
acc8e259
<p>
First paragraph
</p>
<p>
Second paragraph
</p>
<p>
Third paragraph
</p>
<p>
Fourth paragraph
</p>
<p>
Fifth paragraph
</p>
<p>
Sixth paragraph
</p>
<p>
Seventh paragraph
</p>
<p>
Eight paragraph
</p>
<p>
Ninth paragraph
</p>
<p>
Tenth paragraph
</p>
<%=
raise
"error here!"
%>
<p>
Eleventh paragraph
</p>
<p>
Twelfth paragraph
</p>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/_second_json_partial.json.erb
0 → 100644
浏览文件 @
acc8e259
Third level
\ No newline at end of file
actionview/test/fixtures/actionpack/test/action_talk_to_layout.erb
0 → 100644
浏览文件 @
acc8e259
<%
@title
=
"Talking to the layout"
-%>
Action was here!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/calling_partial_with_layout.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
(
:layout
=>
"layout_for_partial"
,
:partial
=>
"partial_for_use_in_layout"
,
:locals
=>
{
:name
=>
"David"
})
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/capturing.erb
0 → 100644
浏览文件 @
acc8e259
<%
days
=
capture
do
%>
Dreamy days
<%
end
%>
<%=
days
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/change_priority.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:partial
=>
"test/json_change_priority"
,
formats: :json
%>
HTML Template, but
<%=
render
:partial
=>
"test/changing_priority"
%>
partial
\ No newline at end of file
actionview/test/fixtures/actionpack/test/content_for.erb
0 → 100644
浏览文件 @
acc8e259
<%
content_for
:title
do
-%>
Putting stuff in the title!
<%
end
-%>
Great stuff!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/content_for_concatenated.erb
0 → 100644
浏览文件 @
acc8e259
<%
content_for
:title
,
"Putting stuff "
content_for
:title
,
"in the title!"
-%>
Great stuff!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/content_for_with_parameter.erb
0 → 100644
浏览文件 @
acc8e259
<%
content_for
:title
,
"Putting stuff in the title!"
-%>
Great stuff!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/dot.directory/render_file_with_ivar.erb
0 → 100644
浏览文件 @
acc8e259
The secret is
<%=
@secret
%>
actionview/test/fixtures/actionpack/test/formatted_html_erb.html.erb
0 → 100644
浏览文件 @
acc8e259
formatted html erb
\ No newline at end of file
actionview/test/fixtures/actionpack/test/formatted_xml_erb.builder
0 → 100644
浏览文件 @
acc8e259
xml.test 'failed'
\ No newline at end of file
actionview/test/fixtures/actionpack/test/formatted_xml_erb.html.erb
0 → 100644
浏览文件 @
acc8e259
<test>
passed formatted html erb
</test>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb
0 → 100644
浏览文件 @
acc8e259
<test>
passed formatted xml erb
</test>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/greeting.html.erb
0 → 100644
浏览文件 @
acc8e259
<p>
This is grand!
</p>
actionview/test/fixtures/actionpack/test/greeting.xml.erb
0 → 100644
浏览文件 @
acc8e259
<p>
This is grand!
</p>
actionview/test/fixtures/actionpack/test/hello,world.erb
0 → 100644
浏览文件 @
acc8e259
Hello w*rld!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello.builder
0 → 100644
浏览文件 @
acc8e259
xml.html do
xml.p "Hello #{@name}"
xml << render(:file => "test/greeting")
end
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello/hello.erb
0 → 100644
浏览文件 @
acc8e259
Hello world!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello_world.erb
0 → 100644
浏览文件 @
acc8e259
Hello world!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello_world_container.builder
0 → 100644
浏览文件 @
acc8e259
xml.test do
render :partial => 'hello', :locals => { :xm => xml }
end
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello_world_from_rxml.builder
0 → 100644
浏览文件 @
acc8e259
xml.html do
xml.p "Hello"
end
actionview/test/fixtures/actionpack/test/hello_world_with_layout_false.erb
0 → 100644
浏览文件 @
acc8e259
Hello world!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hello_world_with_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
Hello world!
<%=
render
'/test/partial'
%>
actionview/test/fixtures/actionpack/test/hello_xml_world.builder
0 → 100644
浏览文件 @
acc8e259
xml.html do
xml.head do
xml.title "Hello World"
end
xml.body do
xml.p "abes"
xml.p "monks"
xml.p "wiseguys"
end
end
\ No newline at end of file
actionview/test/fixtures/actionpack/test/html_template.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:partial
=>
"test/first_json_partial"
,
formats: :json
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/hyphen-ated.erb
0 → 100644
浏览文件 @
acc8e259
Hello world!
actionview/test/fixtures/actionpack/test/implicit_content_type.atom.builder
0 → 100644
浏览文件 @
acc8e259
xml.atom do
end
actionview/test/fixtures/actionpack/test/list.erb
0 → 100644
浏览文件 @
acc8e259
<%=
@test_unchanged
=
'goodbye'
%><%=
render
:partial
=>
'customer'
,
:collection
=>
@customers
%><%=
@test_unchanged
%>
actionview/test/fixtures/actionpack/test/non_erb_block_content_for.builder
0 → 100644
浏览文件 @
acc8e259
content_for :title do
'Putting stuff in the title!'
end
xml << "Great stuff!"
actionview/test/fixtures/actionpack/test/potential_conflicts.erb
0 → 100644
浏览文件 @
acc8e259
First:
<%=
@name
%>
<%=
render
:partial
=>
"person"
,
:locals
=>
{
:name
=>
"Stephan"
}
-%>
Fourth:
<%=
@name
%>
Fifth:
<%=
name
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/proper_block_detection.erb
0 → 100644
浏览文件 @
acc8e259
<%=
@todo
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/render_file_from_template.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:file
=>
@path
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/render_file_with_ivar.erb
0 → 100644
浏览文件 @
acc8e259
The secret is
<%=
@secret
%>
actionview/test/fixtures/actionpack/test/render_file_with_locals.erb
0 → 100644
浏览文件 @
acc8e259
The secret is
<%=
secret
%>
actionview/test/fixtures/actionpack/test/render_file_with_locals_and_default.erb
0 → 100644
浏览文件 @
acc8e259
<%=
secret
||=
'one'
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.da.html.erb
0 → 100644
浏览文件 @
acc8e259
Hey HTML!
actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.html.erb
0 → 100644
浏览文件 @
acc8e259
Hello HTML!
\ No newline at end of file
actionview/test/fixtures/actionpack/test/render_implicit_js_template_without_layout.js.erb
0 → 100644
浏览文件 @
acc8e259
alert('hello');
\ No newline at end of file
actionview/test/fixtures/actionpack/test/render_partial_inside_directory.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
partial:
'test/_directory/partial_with_locales'
,
locals:
{
'name'
=>
'Jane'
}
%>
actionview/test/fixtures/actionpack/test/render_to_string_test.erb
0 → 100644
浏览文件 @
acc8e259
The value of foo is: ::
<%=
@foo
%>
::
actionview/test/fixtures/actionpack/test/render_two_partials.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:partial
=>
'partial'
,
:locals
=>
{
'first'
=>
'1'
}
%>
<%=
render
:partial
=>
'partial'
,
:locals
=>
{
'second'
=>
'2'
}
%>
actionview/test/fixtures/actionpack/test/using_layout_around_block.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
(
:layout
=>
"layout_for_partial"
,
:locals
=>
{
:name
=>
"David"
})
do
%>
Inside from block
<%
end
%>
\ No newline at end of file
actionview/test/fixtures/actionpack/test/with_html_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
<strong>
<%=
render
:partial
=>
"partial_only_html"
%>
</strong>
actionview/test/fixtures/actionpack/test/with_partial.html.erb
0 → 100644
浏览文件 @
acc8e259
<strong>
<%=
render
:partial
=>
"partial_only"
%>
</strong>
actionview/test/fixtures/actionpack/test/with_partial.text.erb
0 → 100644
浏览文件 @
acc8e259
**
<%=
render
:partial
=>
"partial_only"
%>
**
actionview/test/fixtures/actionpack/test/with_xml_template.html.erb
0 → 100644
浏览文件 @
acc8e259
<%=
render
:template
=>
"test/greeting"
,
:formats
=>
:xml
%>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录