aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-07-21 23:46:42 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-07-21 23:54:41 +0530
commit444e01e4af3b321e0ee3b7e4d41538dab23f7d67 (patch)
treedaf493b2f098c0b9b2c26fc409058e0c5b7cd4b0
parent9c7a55cf1126216eefb8b56564d4b2fc2363cb87 (diff)
downloadrails-444e01e4af3b321e0ee3b7e4d41538dab23f7d67.tar.gz
rails-444e01e4af3b321e0ee3b7e4d41538dab23f7d67.tar.bz2
rails-444e01e4af3b321e0ee3b7e4d41538dab23f7d67.zip
alias added for rails runner guide
-rw-r--r--railties/guides/source/command_line.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index 9e3b25d794..a9f4931924 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -311,6 +311,8 @@ h4. +rails runner+
$ rails runner "Model.long_running_method"
</shell>
+You can also use the alias "r" to run Ruby code in the context of Rails: <tt>rails r</tt>.
+
You can specify the environment in which the +runner+ command should operate using the +-e+ switch.
<shell>