I have a new rails installation on a Mac and am running into problems
when trying to start my mongrel server (mongrel_rails start). The
application I'm working on was created from an older version of rails
(windows); could that be the problem? If so, how can I resolve this?
Any help is appreciated...
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract/connection_specification.rb:
14: undefined method `cattr_accessor' for ActiveRecord::Base:Class
(NoMethodError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract_adapter.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /Users/marksmith/src/apps/sasg3/trunk/config/db2odbc_adapter.rb:
82
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
... 12 levels...
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel/command.rb:212:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/
mongrel_rails:281
from /usr/local/bin/mongrel_rails:19:in `load'
from /usr/local/bin/mongrel_rails:19
My initial thoughts were along those lines; maybe my installation was
corrupt or I installed something in the wrong order so I uninstalled
all gems and then uninstalled rails. From there I reinstalled rails
from scratch.
This is only happening with this existing project. If I create a new
project mongrels starts like a champ.
I have a new rails installation on a Mac and am running into problems
when trying to start my mongrel server (mongrel_rails start). The
application I'm working on was created from an older version of rails
(windows); could that be the problem? If so, how can I resolve this?
Any help is appreciated...
Does environment.rb nominate a particular version of rails to use (and
is that version installed?)