Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
judearasu committed Jul 21, 2011
2 parents 6dfed66 + dc1b207 commit 238550f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions railties/guides/source/command_line.textile
Expand Up @@ -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: 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> <shell>
$ rails generate $ rails generate
Usage: rails generate GENERATOR [args] [options] Usage: rails generate GENERATOR [args] [options]
Expand Down Expand Up @@ -311,6 +313,8 @@ h4. +rails runner+
$ rails runner "Model.long_running_method" $ rails runner "Model.long_running_method"
</shell> </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. You can specify the environment in which the +runner+ command should operate using the +-e+ switch.


<shell> <shell>
Expand Down

0 comments on commit 238550f

Please sign in to comment.