aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/performance_testing.textile
diff options
context:
space:
mode:
authorEric Carty-Fickes <ericcf@northwestern.edu>2012-06-26 15:00:11 -0500
committerEric Carty-Fickes <ericcf@northwestern.edu>2012-06-26 15:00:11 -0500
commit8371b0b8544b830d65ed0af14e3aac3fde6425ac (patch)
tree9b458dbaa5bee36f58e953858e6a7f1e3d35556d /guides/source/performance_testing.textile
parent809d4f8eb2bbc615c48d0ccd7cac78a485f3dbed (diff)
downloadrails-8371b0b8544b830d65ed0af14e3aac3fde6425ac.tar.gz
rails-8371b0b8544b830d65ed0af14e3aac3fde6425ac.tar.bz2
rails-8371b0b8544b830d65ed0af14e3aac3fde6425ac.zip
corrected URLs and controller benchmark method call
Diffstat (limited to 'guides/source/performance_testing.textile')
-rw-r--r--guides/source/performance_testing.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/performance_testing.textile b/guides/source/performance_testing.textile
index 958b13cd9e..982fd1b070 100644
--- a/guides/source/performance_testing.textile
+++ b/guides/source/performance_testing.textile
@@ -524,11 +524,11 @@ Please refer to the "API docs":http://api.rubyonrails.org/classes/ActiveRecord/B
h4. Controller
-Similarly, you could use this helper method inside "controllers":http://api.rubyonrails.org/classes/ActionController/Benchmarking/ClassMethods.html#M000715
+Similarly, you could use this helper method inside "controllers":http://api.rubyonrails.org/classes/ActiveSupport/Benchmarkable.html
<ruby>
def process_projects
- self.class.benchmark("Processing projects") do
+ benchmark("Processing projects") do
Project.process(params[:project_ids])
Project.update_cached_projects
end
@@ -539,7 +539,7 @@ NOTE: +benchmark+ is a class method inside controllers
h4. View
-And in "views":http://api.rubyonrails.org/classes/ActionController/Benchmarking/ClassMethods.html#M000715:
+And in "views":http://api.rubyonrails.org/classes/ActiveSupport/Benchmarkable.html:
<erb>
<% benchmark("Showing projects partial") do %>