mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge branch 'master' of git@github.com:lifo/docrails
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user