In Rails 2 you're able to run
script/console --sandbox
so you can play with production data and not accidentally break anything.
I can't seem to find the equivalent command for Rails 3. Does anyone know what it is?
In Rails 2 you're able to run
script/console --sandbox
so you can play with production data and not accidentally break anything.
I can't seem to find the equivalent command for Rails 3. Does anyone know what it is?
Easy, type in:
and that is it.
It is simple, but, sometimes, if you are not running
rails
executable usingbundle exec
, it may, or may not, result in an error. In order to avoid this, ALWAYS usebundle exec
.To quote bundler page (if not documentation):