Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails console test loading development environment

I have a problem where

rails console test

results in

Loading development environment (Rails 3.1.0)

I suspect it's a RAILS_ENV problem because doing

RAILS_ENV=test rails console

results in

Loading test environment (Rails 3.1.0)

Any suggestions? Thanks.

like image 482
axsuul Avatar asked Oct 05 '11 21:10

axsuul


1 Answers

Yes, you must specify RAILS_ENV or use rails console [environment].

like image 59
Adam Eberlin Avatar answered Oct 05 '22 13:10

Adam Eberlin