[Rails] uprgrade to 0.10: uninitialized constant Class::Object

Raphael Bauduin rblists at gmail.com
Wed Mar 2 14:07:45 GMT 2005


Hi,

I installed rails 0.10 with ruby gem, and upgraded my application as
described at http://manuals.rubyonrails.com/read/book/15 .

Now, when accessing the action index of the controller rss_feed, I get
this error in the terminal when I started the server:


#<NameError: uninitialized constant Class::Object>
["/usr/lib/ruby/gems/1.8/gems/actionpack-1.5.0/lib/action_view/vendor/builder/blankslate.rb:49:in
`method_added'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:80:in
`define_method'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:80:in
`send'", "/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:80:in
`handle_dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:34:in
`do_GET'", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'",
"/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:94:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `each'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:20:in
`dispatch'", "/usr/local/rss_feed/script/server:51"]
[2005-03-02 15:17:14] ERROR `/rss_feed/index' not found.


The rails server is listening on port 3082.
It's behing an apache proxy with this config:

        ProxyPass         / http://127.0.0.1:3082/
        ProxyPassReverse  / http://127.0.0.1:3082/

I access the url http://servername/rss_feed/index
Running on debian, with all ruby1.8 packages installed.

Any idea?

Thanks


More information about the Rails mailing list