aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/debugging_rails_applications.textile
diff options
context:
space:
mode:
authorJosiah Ivey <josiah.ivey@gmail.com>2010-08-16 05:25:40 -0500
committerJosiah Ivey <josiah.ivey@gmail.com>2010-08-16 05:25:40 -0500
commit2a55edc725a4272c732dc93bd6aaec9ed0aa20cc (patch)
tree36c434ccf7c17741bc08dbe78eb8789b95673e92 /railties/guides/source/debugging_rails_applications.textile
parent2ad3d96cb03faef1bac9c1678a7306c19e725636 (diff)
downloadrails-2a55edc725a4272c732dc93bd6aaec9ed0aa20cc.tar.gz
rails-2a55edc725a4272c732dc93bd6aaec9ed0aa20cc.tar.bz2
rails-2a55edc725a4272c732dc93bd6aaec9ed0aa20cc.zip
Debugging Guide: Improve grammar for the RJS section
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 26aee82ae1..ccd538d1e8 100644
--- a/railties/guides/source/debugging_rails_applications.textile
+++ b/railties/guides/source/debugging_rails_applications.textile
@@ -98,7 +98,7 @@ Title: Rails debugging guide
h4. Debugging JavaScript
-Rails has built-in support to debug RJS, to active it, set +ActionView::Base.debug_rjs+ to _true_, this will specify whether RJS responses should be wrapped in a try/catch block that alert()s the caught exception (and then re-raises it).
+Rails has built-in support to debug RJS – to activate it, set +ActionView::Base.debug_rjs+ to _true_. This will specify that RJS responses should be wrapped in a try/catch block that displays the caught exception using +alert()+ (and then re-raises it).
To enable it, add the following in the +Rails::Initializer do |config|+ block inside +environment.rb+:
@@ -106,13 +106,13 @@ To enable it, add the following in the +Rails::Initializer do |config|+ block in
config.action_view[:debug_rjs] = true
</ruby>
-Or, at any time, setting +ActionView::Base.debug_rjs+ to _true_:
+Or, at any time, set +ActionView::Base.debug_rjs+ to _true_:
<ruby>
ActionView::Base.debug_rjs = true
</ruby>
-TIP: For more information on debugging javascript refer to "Firebug":http://getfirebug.com/, the popular debugger for Firefox.
+TIP: For more information on debugging JavaScript, refer to "Firebug":http://getfirebug.com/, the popular debugger for Firefox.
h3. The Logger