aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/performance_testing.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-12-29 23:46:03 +0100
committerXavier Noria <fxn@hashref.com>2010-12-29 23:46:03 +0100
commit69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2 (patch)
treecbff92b476133e56dfdc4cfbdf2f5ecb6cfca2c3 /railties/guides/source/performance_testing.textile
parent0ac66caac5581c4793d120c8ad4a2cf4137f6ce2 (diff)
parent6f58b9ad5331d3619fc68a4706d5f85a95510a63 (diff)
downloadrails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.tar.gz
rails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.tar.bz2
rails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.zip
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/performance_testing.textile')
-rw-r--r--railties/guides/source/performance_testing.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/performance_testing.textile b/railties/guides/source/performance_testing.textile
index b9401f3559..341525a75c 100644
--- a/railties/guides/source/performance_testing.textile
+++ b/railties/guides/source/performance_testing.textile
@@ -60,8 +60,8 @@ Let's assume your application has the following controller and model:
<ruby>
# routes.rb
-map.root :controller => 'home'
-map.resources :posts
+root :to => 'home#index'
+resources :posts
# home_controller.rb
class HomeController < ApplicationController
@@ -436,7 +436,7 @@ h4. Model
Project.benchmark("Creating project") do
project = Project.create("name" => "stuff")
project.create_manager("name" => "David")
- project.milestones << Milestone.find(:all)
+ project.milestones << Milestone.all
end
</ruby>