johnkock / substruct

Automatically exported from code.google.com/p/substruct
0 stars 0 forks source link

undefined method `generate_best_match=' for ActionController::Routing:Module #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by ty.patr...@gmail.com on 22 Mar 2010 at 7:21

GoogleCodeExporter commented 8 years ago
Does anyone have anything to add? Hasn't anyone seen this error?

Original comment by ty.patr...@gmail.com on 24 Mar 2010 at 7:00

GoogleCodeExporter commented 8 years ago
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

Original comment by morgan.c...@gmail.com on 1 Apr 2010 at 2:57

GoogleCodeExporter commented 8 years ago
Also:

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

I'm running ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]

Original comment by morgan.c...@gmail.com on 1 Apr 2010 at 3:01

GoogleCodeExporter commented 8 years ago
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

Original comment by duc%ducd...@gtempaccount.com on 4 Apr 2010 at 4:42

GoogleCodeExporter commented 8 years ago
Despite updated to Ruby 1.8.7, the problem still exist. 

Original comment by duc%ducd...@gtempaccount.com on 4 Apr 2010 at 6:00

GoogleCodeExporter commented 8 years ago
having the same issues on ubuntu 9.10 and OS X with rails 2.3.5 and ruby 1.8.7

Original comment by sasimp...@gmail.com on 19 Apr 2010 at 3:38

GoogleCodeExporter commented 8 years ago
You all should be running Rails 2.1.x, not 2.3.

Original comment by subim...@gmail.com on 19 Apr 2010 at 6:20

GoogleCodeExporter commented 8 years ago
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)

Original comment by rogerpack2005 on 4 May 2010 at 10:39

GoogleCodeExporter commented 8 years ago
Happening to me too... I'd love for this to be fixed.

Original comment by nickja...@gmail.com on 4 Jun 2010 at 5:35

GoogleCodeExporter commented 8 years ago
He said we should change to rails 2.1 instead of 2.3. Did anyone tried?

Original comment by duc%ducd...@gtempaccount.com on 4 Jun 2010 at 5:47

GoogleCodeExporter commented 8 years ago
I've just downgraded my installation of rails and will give it a try. I'll 
report back soon.

Original comment by nickja...@gmail.com on 4 Jun 2010 at 5:49

GoogleCodeExporter commented 8 years ago
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...

Original comment by nickja...@gmail.com on 4 Jun 2010 at 5:58

GoogleCodeExporter commented 8 years ago
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.

Original comment by subim...@gmail.com on 7 Jun 2010 at 5:32

GoogleCodeExporter commented 8 years ago
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

Original comment by sunil2...@gmail.com on 9 Jul 2010 at 4:41

GoogleCodeExporter commented 8 years ago
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!

Original comment by mr.dae...@gmail.com on 22 Jul 2010 at 1:24

GoogleCodeExporter commented 8 years ago
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.

Original comment by mr.dae...@gmail.com on 22 Jul 2010 at 2:09

GoogleCodeExporter commented 8 years ago
@mr.daemon ...Thanks for the details.

I think I might try getting a working copy with 2.3.x into trunk this week.

Original comment by subim...@gmail.com on 10 Aug 2010 at 4:33

GoogleCodeExporter commented 8 years ago
Thanks, that's a great news for all of us

Original comment by duc%ducd...@gtempaccount.com on 10 Aug 2010 at 4:39

GoogleCodeExporter commented 8 years ago
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 :/

Original comment by subim...@gmail.com on 10 Aug 2010 at 5:55

GoogleCodeExporter commented 8 years ago
Just tagged / released Substruct 1.2.0 which fixes this issue. Sorry for the 
confusion again.

http://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.

Original comment by subim...@gmail.com on 10 Aug 2010 at 6:14