aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-05-22 08:58:43 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-05-22 08:58:43 +0000
commitda0c4c5c9695e2ebe8d98b391d901b598dd293a2 (patch)
tree09894a8d950e73e0a51698e6657c131592ee9ee6 /actionpack/test
parent0367317dd62ecd177d57d469a4d57974b75e425b (diff)
downloadrails-da0c4c5c9695e2ebe8d98b391d901b598dd293a2.tar.gz
rails-da0c4c5c9695e2ebe8d98b391d901b598dd293a2.tar.bz2
rails-da0c4c5c9695e2ebe8d98b391d901b598dd293a2.zip
Deprecated all render_* methods in favor of consolidating all rendering behavior in Base#render(options). This enables more natural use of combining options, such as layouts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/new_render_test.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb
index 96037093fc..ee971c3b78 100644
--- a/actionpack/test/controller/new_render_test.rb
+++ b/actionpack/test/controller/new_render_test.rb
@@ -17,29 +17,29 @@ class TestController < ActionController::Base
end
def render_hello_world
- r :template => "test/hello_world"
+ render :template => "test/hello_world"
end
def render_hello_world_from_variable
@person = "david"
- r :text => "hello #{@person}"
+ render :text => "hello #{@person}"
end
def render_action_hello_world
- r :action => "hello_world"
+ render :action => "hello_world"
end
def render_text_hello_world
- r :text => "hello world"
+ render :text => "hello world"
end
def render_custom_code
- r :text => "hello world", :status => "404 Moved"
+ render :text => "hello world", :status => "404 Moved"
end
def render_xml_hello
@name = "David"
- r :template => "test/hello"
+ render :template => "test/hello"
end
def greeting
@@ -47,24 +47,24 @@ class TestController < ActionController::Base
end
def layout_test
- r :action => "hello_world"
+ render :action => "hello_world"
end
def layout_test_with_different_layout
- r :action => "hello_world", :layout => "standard"
+ render :action => "hello_world", :layout => "standard"
end
def rendering_without_layout
- r :action => "hello_world", :layout => false
+ render :action => "hello_world", :layout => false
end
def builder_layout_test
- r :action => "hello"
+ render :action => "hello"
end
def partials_list
@customers = [ Customer.new("david"), Customer.new("mary") ]
- r :action => "list"
+ render :action => "list"
end
def partial_only
@@ -73,11 +73,11 @@ class TestController < ActionController::Base
def hello_in_a_string
@customers = [ Customer.new("david"), Customer.new("mary") ]
- r :text => "How's there? #{render_to_string("test/list")}"
+ render :text => "How's there? #{render_to_string("test/list")}"
end
def accessing_params_in_template
- r :inline => "Hello: <%= params[:name] %>"
+ render :inline => "Hello: <%= params[:name] %>"
end
def rescue_action(e) raise end