Rails console in a non-dev environment

Snippet

Use rails console for a (debugging) console in the current, default environment, usually development.

Use -e [environment] to load a different local to the shell.

# start a console in the test environment 
rails console -e test

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.