Installing Rails 2.2
I was running
• Rails 2 (ver. 2.0.2, I think)
• Gem (ver. 1.0.1)
I upgraded to 2.2 with the following commands:
gem update –system
cd’d to the ruby-container directory
gem install rails
rails –v (yielded: 2.2.0)
setenv -m rails_gem_version 2.2 (set the machine’s
“rails_gem_version” to 2.2)
echo %rails_gem_version% (yielded: 2.2)
I had a partial app I created under Rails 2 working. (Rails 2.0.2, I
think).
Today, I ran:
K:_Projects\Ruby_Rails_Apps\Payroll>ruby script/server
I got:
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 2.2.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
Exiting
K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rails-2.2.0/
lib/initializer.rb:514:in send': undefined method
cache_template_extensions=’
Possible mistakes I can think of:
- I installed Rails 2.2 instead of merely updating the existing
Rails 2.0.2 - gen –v produces 1.3.1 — I don’t know if that’s a problem
- I created a machine’s environment variable “rails_gem_version”
and set it to 2.2 - I change config/environment.rb alternately from RAILS_GEM_VERSION =
‘2.0.2’ unless defined? RAILS_GEM_VERSION to:
– RAILS_GEM_VERSION = ‘2.2’ unless defined? RAILS_GEM_VERSION
– RAILS_GEM_VERSION = ‘2.2’
– RAILS_GEM_VERSION = ‘2.2.0’
Thanks in advance for any ideas on what the problem may be,
Richard