Browse files

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.
  • Loading branch information...
1 parent c12b886 commit 2314490547e7b864a387d4a71586373036beb35f @schneems schneems committed Mar 24, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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: <tt>rails c</tt>.
+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+.

0 comments on commit 2314490

Please sign in to comment.