From 2314490547e7b864a387d4a71586373036beb35f Mon Sep 17 00:00:00 2001 From: schneems Date: Sat, 24 Mar 2012 17:17:21 -0500 Subject: document `-e` argument for rails console this adds documentation for -e flag which sets the environment of the rails console like the `rails server` command. --- guides/source/command_line.textile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guides/source/command_line.textile b/guides/source/command_line.textile index 463c2b172b..858ce47db1 100644 --- a/guides/source/command_line.textile +++ b/guides/source/command_line.textile @@ -278,6 +278,12 @@ The +console+ command lets you interact with your Rails application from the com You can also use the alias "c" to invoke the console: rails c. +You can specify the environment in which the +console+ command should operate using the +-e+ switch. + + +$ rails console -e staging + + If you wish to test out some code without changing any data, you can do that by invoking +rails console --sandbox+. -- cgit v1.2.3