Hi, I’ve just started getting into rails and up until today (for some
reason) I’ve been using Rails 1.2.6
So I updated to Rails 2.0.2 by using gem update, but now I’m not able to
run anything at all.
Let’s say I create a new app by doing:
“rails someApp”
Then when I try to start the server, this is what I get:
thomas$ script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 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
/Users/thomas/Documents/Web/ruby/displaypictures/config/environment.rb:44:
undefined method time_zone=' for #<Rails::Configuration:0x1236698> (NoMethodError) from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/initializer.rb:47:in
run’
from
/Users/thomas/Documents/Web/ruby/displaypictures/config/environment.rb:13
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
require’
from
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
new_constants_in’
from
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:155:in
rails’
… 20 levels…
from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
require’
from script/server:3
I’ve searched around and I still haven’t found a working solution.
Any help would be highly appreciated.