script/console in development mode ?

is it script/console in development mode or production mode ?

is it script/console in development mode or production mode ?

script/console works out what environment to use in the same way as
everything else, so by default, script/console will run in development
mode (as would script/server). But if the RAILS_ENV environment
variable is set it will inherit that (or if you pass -e)

Fred

There's no -e on script/console

  script/console production

or to force development mode:

  script/console development

You can always ask the script for help:

$ script/console -h Usage: console [environment] [options]      -s, --sandbox Rollback database modifications on exit.          --irb=[irb] Invoke a different irb.

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com