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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Martin
2009-Nov-25 17:48 UTC
Re: Deploying Error: undefined method ''generate_best_match=''
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 On Nov 24, 11:43 pm, Martin <martin.kn...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 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.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Matt Jones
2009-Nov-26 14:55 UTC
Re: Deploying Error: undefined method ''generate_best_match=''
On Nov 24, 5:43 pm, Martin <martin.kn...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 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.2There''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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.