Skip to content
This repository
Browse code

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...
commit 2314490547e7b864a387d4a71586373036beb35f 1 parent c12b886
Richard Schneeman authored March 24, 2012

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  guides/source/command_line.textile
6  guides/source/command_line.textile
Source Rendered
@@ -278,6 +278,12 @@ The +console+ command lets you interact with your Rails application from the com
278 278
 
279 279
 You can also use the alias "c" to invoke the console: <tt>rails c</tt>.
280 280
 
  281
+You can specify the environment in which the +console+ command should operate using the +-e+ switch.
  282
+
  283
+<shell>
  284
+$ rails console -e staging
  285
+</shell>
  286
+
281 287
 If you wish to test out some code without changing any data, you can do that by invoking +rails console --sandbox+.
282 288
 
283 289
 <shell>

0 notes on commit 2314490

Please sign in to comment.
Something went wrong with that request. Please try again.