My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 197: undefined method `generate_best_match=' for ActionController::Routing:Module
4 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2010


 
Reported by ty.patr...@gmail.com, Mar 22, 2010
What steps will reproduce the problem?
1. Follow install instructions
2. edit YML file and execute rake db:create
3.

What is the expected output? What do you see instead?
Create databases. 

Error message states: undefined method `generate_best_match=' for
ActionController::Routing:Module

What version of the product are you using? On what operating system?
OSX 10.6, Rails 2.3.4, latest versions for all required GEMS.

Please provide any additional information below.

I had to comment out Rails::GemDependency.add_frozen_gem_path
from boot.rb file because it was causing an error prior to this one.
Mar 24, 2010
#1 ty.patr...@gmail.com
Does anyone have anything to add? Hasn't anyone seen this error?
Apr 1, 2010
#2 morgan.c...@gmail.com
I'm seeing it now. Using postgresql db. 

Also got the error below which i solved/worked around by commenting out line 47 in 
config/boot.rb

undefined method `add_frozen_gem_path' for Rails::GemDependency:Class
Apr 1, 2010
#3 morgan.c...@gmail.com
Also:

http://groups.google.com/group/substruct/browse_thread/thread/d49bf3914e0baa1e/f0ba44a
0dd3f604c?lnk=gst&q=generate_best_match#

I'm running ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
Apr 4, 2010
#4 duc%ducd...@gtempaccount.com
Exactly the same problem for me. RUnning:

Win7 64
Mysql
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
Rails 2.3.5

id love to find out the problem since i really want to implement substruct
Apr 4, 2010
#5 duc%ducd...@gtempaccount.com
Despite updated to Ruby 1.8.7, the problem still exist. 
Apr 19, 2010
#6 sasimp...@gmail.com
having the same issues on ubuntu 9.10 and OS X with rails 2.3.5 and ruby 1.8.7
Apr 19, 2010
Project Member #7 subim...@gmail.com
You all should be running Rails 2.1.x, not 2.3.
May 4, 2010
#8 rogerpack2005
It appears that the "release 1.1.0" version is built with a rails 2.3.x 
config\boot.rb but includes a vendored rails 2.1.2 , so a conflict occurs.  Or is 
that not the case here?

C:\dev\ruby\downloads\substruct_rel_1-1-0>rake db:create
(in C:/dev/ruby/downloads/substruct_rel_1-1-0)
rake aborted!
undefined method `add_frozen_gem_path' for Rails::GemDependency:Class
c:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)
Jun 3, 2010
#9 nickja...@gmail.com
Happening to me too... I'd love for this to be fixed.
Jun 3, 2010
#10 duc%ducd...@gtempaccount.com
He said we should change to rails 2.1 instead of 2.3. Did anyone tried?
Jun 3, 2010
#11 nickja...@gmail.com
I've just downgraded my installation of rails and will give it a try. I'll report back soon.
Jun 3, 2010
#12 nickja...@gmail.com
I can't seem to downgrade. After uninstalling, I attempt to re-install 2.1

gem install rails -v 2.1 - include-dependencies

however rails -v still brings up Rails 2.2.2

I'll keep plugging away...
Jun 7, 2010
Project Member #13 subim...@gmail.com
You guys are making this way harder than it needs to be. Use the Rails version included in the vendor folder 
either from the GZIP archive, or from the SVN checkout. This is not rocket science.
Jul 8, 2010
#14 sunil2...@gmail.com
And how do I "Use the Rails version included in the vendor folder"?  comment the line in evnironment.rb?


# Specifies gem version of Rails to use when vendor/rails is not present
#RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION


Jul 21, 2010
#15 mr.dae...@gmail.com
This may not be rocket science but it would be great if you didn't assume we are all familiar with the codebase.

How about you either update the almost non-existent installation documentation or just outright state how to do that? Either would be great :)

Thanks!
Jul 21, 2010
#16 mr.dae...@gmail.com
So I fixed it. And yes anyone just using the zip file is ALREADY using the frozen rails in /vendor and that is NOT the problem.

Had to edit config/initializers/new_rails_defaults.rb

and comment out ActionController::Routing.generate_best_match = false.
Apparently the initializers and envrionnement were NOT created with rails 2.1.2. Removing the offending bits allows the bundled, frozen rails in vendor to work correctly.
Aug 9, 2010
Project Member #17 subim...@gmail.com
@mr.daemon ...Thanks for the details.

I think I might try getting a working copy with 2.3.x into trunk this week.
Status: Accepted
Aug 9, 2010
#18 duc%ducd...@gtempaccount.com
Thanks, that's a great news for all of us
Aug 9, 2010
Project Member #19 subim...@gmail.com
Biggest hurdle is figuring out the proper way to do migrations with 2.3, which is what has kept me from doing it in the past. There still isn't a proper way to handle migrations with that Rails version :/
Aug 9, 2010
Project Member #20 subim...@gmail.com
Just tagged / released Substruct 1.2.0 which fixes this issue. Sorry for the confusion again.

https://code.google.com/p/substruct/downloads/detail?name=substruct_rel_1-2-0.tar.gz

I'm closing this one down. If you want to talk about Substruct on Rails 2.3 then please check out  issue 198 .
Status: Fixed

Powered by Google Project Hosting