What does this error mean when using scaffold?


#1

Last login: Fri Dec 30 15:34:43 on ttyp1
source /private/var/tmp/folders.501/TemporaryItems/Locomotive.
1135999534.992790-16807
Welcome to Darwin!
frank-roccos-powerbook58:~ farocco$ source /private/var/tmp/folders.
501/TemporaryItems/Locomotive.1135999534.992790-16807
frank-roccos-powerbook58:~/Documents/receipts farocco$ script/
generate scaffold receipt receipt
./script/…/config/…/config/environment.rb:63: undefined method
config' for LoginEngine:Module (NoMethodError) from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:21:inrequire__’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in require' from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/ activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/
rails-1.0.0/lib/commands/generate.rb:1
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in require__' from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:21:inrequire’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/
activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require’
from script/generate:3

Thanks
Frank


#2

On 12/30/05, Frank R. removed_email_address@domain.invalid wrote:

Last login: Fri Dec 30 15:34:43 on ttyp1
source /private/var/tmp/folders.501/TemporaryItems/Locomotive.
1135999534.992790-16807
Welcome to Darwin!
frank-roccos-powerbook58:~ farocco$ source /private/var/tmp/folders.
501/TemporaryItems/Locomotive.1135999534.992790-16807
frank-roccos-powerbook58:~/Documents/receipts farocco$ script/
generate scaffold receipt receipt
./script/…/config/…/config/environment.rb:63: undefined method
`config’ for LoginEngine:Module (NoMethodError)

Looks to be a problem with the LoginEngine. Remove it or update it.


#3

ok, I removed it from my app.
Now I get:

Last login: Fri Dec 30 22:28:51 on ttyp2
Welcome to Darwin!
frank-roccos-powerbook58:~ farocco$ source /private/var/tmp/folders.
501/TemporaryItems/Locomotive.1136035608.399420-16807
frank-roccos-powerbook58:~/Documents/receipts farocco$ script/
generate scaffold receipt receipt
./script/…/config/…/config/environment.rb:63: undefined method
config' for LoginEngine:Module (NoMethodError) from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:21:inrequire__’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in require' from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/ activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/
rails-1.0.0/lib/commands/generate.rb:1
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in require__' from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0- min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:21:inrequire’
from /Users/farocco/Desktop/Locomotive/Bundles/rails-1.0.0-
min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/
activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require’
from script/generate:3


#4

On 12/31/05, Frank R. removed_email_address@domain.invalid wrote:

ok, I removed it from my app.
Now I get:

Last login: Fri Dec 30 22:28:51 on ttyp2
Welcome to Darwin!
frank-roccos-powerbook58:~ farocco$ source /private/var/tmp/folders.
501/TemporaryItems/Locomotive.1136035608.399420-16807
frank-roccos-powerbook58:~/Documents/receipts farocco$ script/
generate scaffold receipt receipt

./script/…/config/…/config/environment.rb:63: undefined method
`config’ for LoginEngine:Module (NoMethodError)

There still seem to be some remnants of the LoginEngine floating
around in there somehow…

Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

-r


Ryan R.
http://www.rockefeller.edu – Bacterial Pathogenesis and Immunology
http://www.worldmartial.com – Black Belt Instructor
http://locomotive.sourceforge.net – Self contained one-click Rails for
Mac OS X


#5

On 12/31/05, Frank R. removed_email_address@domain.invalid wrote:

`config’ for LoginEngine:Module (NoMethodError)
Look at line 63 in config/environment.rb. Remove the LoginEngine stuff.


#6

Getting back to the original problem, it’s because the ‘config’ method
couldn’t be found. Did you remember to install the Engines plugin
itself? (ruby script/plugin install engines) This is the plugin that
defines the ‘config’ method.

  • james

#7

ok,

I generated a new app nad it seems to be ok.
I am attempting to fix the old app by removing loginEngine.

Thanks
Frank