aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/debugging_rails_applications.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2010-12-25 23:59:57 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2010-12-25 23:59:57 +0530
commit2801efbc3b3a5c5cf3406aa7063852a86898f547 (patch)
tree0c86cff577ea66f39aa8b43ecf28d6000ae2a71f /railties/guides/source/debugging_rails_applications.textile
parentc6b9e47d5c59554d13d7dabedb651c7bf69da56b (diff)
downloadrails-2801efbc3b3a5c5cf3406aa7063852a86898f547.tar.gz
rails-2801efbc3b3a5c5cf3406aa7063852a86898f547.tar.bz2
rails-2801efbc3b3a5c5cf3406aa7063852a86898f547.zip
use all and first instead of find(:all) and find(:first)
Diffstat (limited to 'railties/guides/source/debugging_rails_applications.textile')
-rw-r--r--railties/guides/source/debugging_rails_applications.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/debugging_rails_applications.textile b/railties/guides/source/debugging_rails_applications.textile
index 2c8a6619c2..b84d7d088d 100644
--- a/railties/guides/source/debugging_rails_applications.textile
+++ b/railties/guides/source/debugging_rails_applications.textile
@@ -269,7 +269,7 @@ If you got there by a browser request, the browser tab containing the request wi
For example:
<shell>
-@posts = Post.find(:all)
+@posts = Post.all
(rdb:7)
</shell>
@@ -302,7 +302,7 @@ This command shows you where you are in the code by printing 10 lines centered a
3 # GET /posts.xml
4 def index
5 debugger
-=> 6 @posts = Post.find(:all)
+=> 6 @posts = Post.all
7
8 respond_to do |format|
9 format.html # index.html.erb
@@ -380,7 +380,7 @@ Any expression can be evaluated in the current context. To evaluate an expressio
This example shows how you can print the instance_variables defined within the current context:
<shell>
-@posts = Post.find(:all)
+@posts = Post.all
(rdb:11) instance_variables
["@_response", "@action_name", "@url", "@_session", "@_cookies", "@performed_render", "@_flash", "@template", "@_params", "@before_filter_chain_aborted", "@request_origin", "@_headers", "@performed_redirect", "@_request"]
</shell>