aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudeArasu <judearasu@gmail.com>2011-07-22 00:26:31 +0530
committerJudeArasu <judearasu@gmail.com>2011-07-22 00:26:31 +0530
commit238550f7c4d71b6ceadd0b57139166b2ec4e4849 (patch)
tree0918c93aebd214bc3279b1b83b2240947aec04c7
parent6dfed66c322a6812d3b89490c7a1fcdb664f9eda (diff)
parentdc1b207d81313d71536a06a45237b8e98fa217ba (diff)
downloadrails-238550f7c4d71b6ceadd0b57139166b2ec4e4849.tar.gz
rails-238550f7c4d71b6ceadd0b57139166b2ec4e4849.tar.bz2
rails-238550f7c4d71b6ceadd0b57139166b2ec4e4849.zip
Merge branch 'master' of git@github.com:lifo/docrails
-rw-r--r--railties/guides/source/command_line.textile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index 9e3b25d794..b5e87eea3d 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -85,6 +85,8 @@ h4. +rails generate+
The +rails generate+ command uses templates to create a whole lot of things. Running +rails generate+ by itself gives a list of available generators:
+You can also use the alias "g" that will work same as +rails generate+: <tt>rails g</tt>.
+
<shell>
$ rails generate
Usage: rails generate GENERATOR [args] [options]
@@ -311,6 +313,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>