From 444e01e4af3b321e0ee3b7e4d41538dab23f7d67 Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Thu, 21 Jul 2011 23:46:42 +0530 Subject: [PATCH 1/2] alias added for rails runner guide --- railties/guides/source/command_line.textile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile index 9e3b25d7944cf..a9f49319244d9 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" +You can also use the alias "r" to run Ruby code in the context of Rails: rails r. + You can specify the environment in which the +runner+ command should operate using the +-e+ switch. From dc1b207d81313d71536a06a45237b8e98fa217ba Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Thu, 21 Jul 2011 23:55:31 +0530 Subject: [PATCH 2/2] alias added for rails generate guide --- railties/guides/source/command_line.textile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile index a9f49319244d9..b5e87eea3d499 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+: rails g. + $ rails generate Usage: rails generate GENERATOR [args] [options]