Deploying Error: undefined method 'generate_best_match='

Hey guys,

I'm quite new to rails and experiencing some problems with the deployment of my application to a web server.

I am using github, can connect to the server, "cap deploy:check" and :setup run fine, but when I want to use "deploy:cold" or migrate my database (rake RAILS_ENV=production db:migrate) I get this error:

rake aborted! undefined method 'generate_best_match=' for ActionController::Routing:Module

when I --trace I get ../config/initializers/new_rails_defaults.rb:14

Ruby=1.8.7p5000, Rails=2.2.2

I really hope you can help me with this one.

Nobody any ideas?

Maybe l.14 helps: (from new_rails_default.rb)

# These settings change the behavior of Rails 2 apps and will be defaults # for Rails 3. You can remove this initializer when Rails 3 is released.

ActionController::Routing.generate_best_match = false

There's your problem - you've got a Rails 2.3 initializer running against 2.2.2. You'll need to fix one or the other...

--Matt Jones