aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/debugging_rails_applications.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/debugging_rails_applications.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/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>