diff options
author | Xavier Noria <fxn@hashref.com> | 2010-12-29 23:46:03 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-12-29 23:46:03 +0100 |
commit | 69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2 (patch) | |
tree | cbff92b476133e56dfdc4cfbdf2f5ecb6cfca2c3 /railties/guides/source/performance_testing.textile | |
parent | 0ac66caac5581c4793d120c8ad4a2cf4137f6ce2 (diff) | |
parent | 6f58b9ad5331d3619fc68a4706d5f85a95510a63 (diff) | |
download | rails-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.textile | 6 |
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> |