[Rails] Rails on mod_ruby

Eric Anderson eric at afaik.us
Thu Dec 9 00:48:59 GMT 2004


I am trying to get a simple "hello world" up and running on my server 
with mod_ruby. I think I got everything done but I am getting an error. 
I have copied and pasted the stacktrace at the bottom of the message. 
Any help would be greatly appreciated. The only reference to this 
problem was the following URL:

http://groups-beta.google.com/group/comp.lang.ruby/browse_thread/thread/53c6c8a6183810ea/d2bf3b5e8e1deafd?q=in+%60undef_method%27:+undefined+method+%60extend_object%27+for+%60Singleton%27+(NameError)&_done=%2Fgroups%3Fhl%3Den%26safe%3Doff%26c2coff%3D1%26q%3Din+%60undef_method%27:+undefined+method+%60extend_object%27+for+%60Singleton%27+(NameError)%26qt_s%3DSearch+Groups%26&_doneTitle=Back+to+Search&&d#d2bf3b5e8e1deafd

but I don't completely understand the discussion and therefore don't 
really understand how to go about solving my problem. Also there was a 
small bug in the latest rails package. The new_controller script seemed 
to have an extra "end" keyword at the end of the file. I just removed it 
and everything worked fine.

Thanks,

Eric

**** STACKTRACE ****

[Wed Dec 08 19:27:36 2004] [error] mod_ruby: error in ruby
[Wed Dec 08 19:27:36 2004] [error] mod_ruby: 
/usr/lib/ruby/1.8/singleton.rb:167:in `undef_method': undefined method 
`extend_object' for `Singleton' (NameError)
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/singleton.rb:167
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `load'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `require'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/virtual/1/web/account.realsimplehosting.com/vendor/activerecord/lib/active_record/observer.rb:1
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `load'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `require'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/virtual/1/web/account.realsimplehosting.com/vendor/activerecord/lib/active_record.rb:31
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `load'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:    ... 6 levels...
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/auto-reload.rb:77:in `require'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/virtual/1/web/account.realsimplehosting.com/www/dispatch.rbx:4
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load'
[Wed Dec 08 19:27:36 2004] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://one.textdrive.com/pipermail/rails/attachments/20041208/616e15f9/signature.bin


More information about the Rails mailing list