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
You can also solve this by appending the --environment=production argument to the rails c or rails console command
--environment=production
rails c
rails console
rails c --environment=production
That's all.
I hope this helps