Raphael Bauduin
2005-Mar-02 14:07 UTC
uprgrade to 0.10: uninitialized constant Class::Object
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
Duane Johnson
2005-Mar-02 16:27 UTC
Re: uprgrade to 0.10: uninitialized constant Class::Object
Raphael: I had a similar problem (couldn''t find String or Array) when upgrading. I discovered in my case that it had to do with some custom modifications I had made to the Ruby classes. In Rails 0.10 the workaround seems to be to put any such modifications in the helper classes (such as ApplicationHelper.rb) or else to open built-in classes with "class Object::Array" instead of "class Array" as I had been used to doing. I know this doesn''t solve your problem directly, but it may lead to something helpful :) Take care, Duane Johnson (canadaduane) On Wed, 2 Mar 2005 15:07:45 +0100, Raphael Bauduin <rblists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Nicholas Seckar
2005-Mar-03 07:12 UTC
Re: uprgrade to 0.10: uninitialized constant Class::Object
On Wednesday 02 March 2005 11:27, Duane Johnson wrote:> Raphael: > > I had a similar problem (couldn''t find String or Array) when > upgrading. I discovered in my case that it had to do with some custom > modifications I had made to the Ruby classes. In Rails 0.10 the > workaround seems to be to put any such modifications in the helper > classes (such as ApplicationHelper.rb) or else to open built-in > classes with "class Object::Array" instead of "class Array" as I had > been used to doing.By the way, this quirky behavior is fixed in 0.10.1. -- Nicholas Seckar aka. Ulysses
Raphael Bauduin
2005-Mar-03 09:51 UTC
Re: uprgrade to 0.10: uninitialized constant Class::Object
On Wed, 2 Mar 2005 17:27:59 +0100, Duane Johnson <duane.johnson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Raphael: > > I had a similar problem (couldn''t find String or Array) when > upgrading. I discovered in my case that it had to do with some custom > modifications I had made to the Ruby classes. In Rails 0.10 the > workaround seems to be to put any such modifications in the helper > classes (such as ApplicationHelper.rb) or else to open built-in > classes with "class Object::Array" instead of "class Array" as I had > been used to doing. > > I know this doesn''t solve your problem directly, but it may lead to > something helpful :)It didn''t solve my problem immediately, but it led me to the solution. I had a deep_copy method defined. Thanks for your help! Raph> > Take care, > Duane Johnson > (canadaduane) > > > On Wed, 2 Mar 2005 15:07:45 +0100, Raphael Bauduin <rblists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >