From ab5eb50b2176d090e3a31c79304423781bbf7aee Mon Sep 17 00:00:00 2001 From: Uday Kadaboina Date: Sat, 23 Jun 2012 02:43:34 -0600 Subject: fixed a typo --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index f25e0c0200..c42f658b94 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -906,7 +906,7 @@ end The new method, +update_attributes+, is used when you want to update a record -that already exists, and it accepts an hash containing the attributes +that already exists, and it accepts a hash containing the attributes that you want to update. As before, if there was an error updating the post we want to show the form back to the user. -- cgit v1.2.3 From 0c22ac2d60065836c099695b8026bed1d4892898 Mon Sep 17 00:00:00 2001 From: Uday Kadaboina Date: Sat, 23 Jun 2012 02:52:57 -0600 Subject: fixed another typo in edge guides --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index c42f658b94..a489469a45 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1191,7 +1191,7 @@ delete "posts/:id" => "posts#destroy" That's a lot to type for covering a single *resource*. Fortunately, Rails provides a +resources+ method which can be used to declare a -standard REST resource. Here's how +config/routes/rb+ looks after the +standard REST resource. Here's how +config/routes.rb+ looks after the cleanup: -- cgit v1.2.3 From d5badc4513309a9efeb2d6c92ddd6dbab5159c58 Mon Sep 17 00:00:00 2001 From: Perry Smith Date: Sun, 24 Jun 2012 10:01:46 -0500 Subject: Fixed example in 1.2 so help will be defined as the text implies --- guides/source/routing.textile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/routing.textile b/guides/source/routing.textile index dae25853cd..70b602a243 100644 --- a/guides/source/routing.textile +++ b/guides/source/routing.textile @@ -32,7 +32,13 @@ the request is dispatched to the +patients+ controller's +show+ action with h4. Generating Paths and URLs from Code -You can also generate paths and URLs. If your application contains this code: +You can also generate paths and URLs. If the route above is modified to be + + +get "/patients/:id" => "patients#show", :as => "patient" + + +If your application contains this code: @patient = Patient.find(17) -- cgit v1.2.3 From 8371b0b8544b830d65ed0af14e3aac3fde6425ac Mon Sep 17 00:00:00 2001 From: Eric Carty-Fickes Date: Tue, 26 Jun 2012 15:00:11 -0500 Subject: corrected URLs and controller benchmark method call --- guides/source/performance_testing.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source') 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 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: <% benchmark("Showing projects partial") do %> -- cgit v1.2.3 From a9bb1364b599a6f5196dd0132dfe5a941a7649e1 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 29 Jun 2012 00:08:43 +0100 Subject: Rails now uses the ActiveSupport BufferedLogger class Instead of the standard Ruby logger --- guides/source/debugging_rails_applications.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/debugging_rails_applications.textile b/guides/source/debugging_rails_applications.textile index 0802a2db26..cc172042e9 100644 --- a/guides/source/debugging_rails_applications.textile +++ b/guides/source/debugging_rails_applications.textile @@ -102,7 +102,7 @@ It can also be useful to save information to log files at runtime. Rails maintai h4. What is the Logger? -Rails makes use of Ruby's standard +logger+ to write log information. You can also substitute another logger such as +Log4r+ if you wish. +Rails makes use of the +ActiveSupport::BufferedLogger+ class to write log information. You can also substitute another logger such as +Log4r+ if you wish. You can specify an alternative logger in your +environment.rb+ or any environment file: -- cgit v1.2.3