Hi, I’m having a mysterious problem that occurs when I’m using Rails
1.2.2. My app works fine when the environment.rb file reads:
RAILS_GEM_VERSION = ‘1.1.6’
When I change this to:
RAILS_GEM_VERSION = ‘1.2.2’
and try to load http://:3000/srs/, I get the following
traceback in the developer log:
Expected
/Users/thoth/Source/taskmaster/public/…/config/…/app/controllers/srs_controller.rb
to define SrsController
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:249:in
load_missing_constant' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:452:in
const_missing’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:464:in
const_missing' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/inflector.rb:250:in
constantize’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/core_ext/string/inflections.rb:148:in
constantize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/routing.rb:1284:in
recognize’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:40:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:168:in
process_request’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:143:in
process_each_request!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:109:in
with_signal_handler’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:142:in
process_each_request!' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:612:in
each_cgi’
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in each' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in
each_cgi’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in
process_each_request!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:55:in
process!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in
`process!’
/Users/thoth/Source/taskmaster/public/dispatch.fcgi:24
This is on Mac OS X 10.4.9, ruby 1.8.5, rails 1.2.2. Anyone have any
idea why this would work fine when configured to use Rails 1.1.6, but
not 1.2.2? Note that this project was originally generated by 1.1.6.
I’d like to upgrade it to 1.2.2.
steven