diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-27 21:26:37 +0530 |
commit | b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4 (patch) | |
tree | dd296efc489c22850d6cc7fa8d7a69da5e122b54 /guides/source/command_line.textile | |
parent | 888fcca01b736b7f91041b7a6a1b162af6688f7a (diff) | |
parent | ae040ed6d8c48bf0cd6d5d6b434d60c9c8c27f81 (diff) | |
download | rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.gz rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.tar.bz2 rails-b42fbd3ecbc3e2c55987e0ae6331443dfd68d5b4.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/command_line.textile')
-rw-r--r-- | guides/source/command_line.textile | 6 |
1 files changed, 6 insertions, 0 deletions
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: <tt>rails c</tt>. +You can specify the environment in which the +console+ command should operate using the +-e+ switch. + +<shell> +$ rails console -e staging +</shell> + If you wish to test out some code without changing any data, you can do that by invoking +rails console --sandbox+. <shell> |