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

Raphael Bauduin rblists at gmail.com
Thu Mar 3 09:51:46 GMT 2005


On Wed, 2 Mar 2005 17:27:59 +0100, Duane Johnson
<duane.johnson at gmail.com> 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 at gmail.com> 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 at lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>


More information about the Rails mailing list