If you're using the popular Capistrano web deployment framework, you will likely have wished you had an easy way to perform a quick task in the production rails console on one of your servers. Many thanks to @colszowka for this solution:
NOTE: This is for Capistrano v2. Things are different for v3.
And, vòila! Run
cap rails:console and you're in business.