Everything works fine on my OS X development laptop.
Deploy the app to production and it runs and displays data as expected.
However, when I try to run the Rails
Solved it.
All I needed to do was...
$ RAILS_ENV=production bundle exec rails console
You can also solve this by appending the --environment=production
argument to the rails c
or rails console
command
rails c --environment=production
That's all.
I hope this helps
Another way to do this:
./script/rails console production
I solved with run:
RAILS_ENV=production bundle exec rails c
more details on link