Starting console in staging or production environment

Problem

You would like to start your rails console in an environment that is not the development, like staging or production.

 

Solution

Using the latest 3 shortcut you can use:

rails c staging