As the problem faced by many other folks that rails 2.3.2 is not working
with cgi, Now I want to revert to rails 2.2.2 on my shared host
(bluehost ) can anybody guide me how to revert to 2.2.2.
I tried the following:
1. I installed the older rails gem "gem install rails --version 2.2.2
--include-dependencies
"
2. I tried to set the PATH env to my rails 2.2.2 version and also
updated the .gemrc file
As the problem faced by many other folks that rails 2.3.2 is not working
with cgi, Now I want to revert to rails 2.2.2 on my shared host
(bluehost ) can anybody guide me how to revert to 2.2.2.
I tried the following:
1. I installed the older rails gem "gem install rails --version 2.2.2
--include-dependencies
"
2. I tried to set the PATH env to my rails 2.2.2 version and also
updated the .gemrc file
but no luck it seems i am still using 2.3.2
Best way is probably to freeze the version of rails you want to use in
your development version, then deploy that to your shared host.
Easiest way is probably to modify environment.rb.
RAILS_GEM_VERSION = '2.2.2'
If that version isn't available rails will raise an exception and won't
start, but at least you'll know right away.
I ran into similar issues on Bluehost after they updated rails to
2.3.2 and realized I had my .htaccess wrong and rails had been running
in cgi mode. I put together a detailed article with a new bluehost
rails install guide they haven't thought to put on the support site
since the recent upgrade.