gem update rails problem

Jacek Balcerski
Wed, 05 Jan 2005 18:41:25 -0000

Hi,
I just upgrade gem from 0.8 to 0.8.3 and try to upgrade rails, but ..
There was a problem with it. This is exactly what i did:
1) gem update rails
.....
lib/action_controller/support/binding_of_caller.rb:4:25: Couldn''t find
Continuat ion. Assuming it''s a module
lib/action_controller/support/binding_of_caller.rb:36:21: Couldn''t find
Binding.  Assuming it''s a module
lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic
string: "#{model_id.id2name}"
ERROR:  While executing gem ... (NoMethodError)
    undefined method `find_module_named'' for nil:NilClass
And raild did''t upgrade to 0.9.3

Then a few minutes later i did this same
1) gem update rails
and everythink was just fine
so All gems up to date :)

but
my webpage stops working
on web trace shows this:

|/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`load''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`require_or_load''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`silence_warnings''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`require_or_load''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:17:in
`depend_on''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:51:in
`require_dependency''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:51:in
`require_dependency''
/usr/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in
`dispatch''
/home/balcer/Projects/cc/www/cc/public/dispatch.cgi:10

production log :

Processing Base#index (for 192.168.0.6 at Wed Jan 05 19:28:38 CET 2005)
  Parameters: {"action"=>"index",
"controller"=>"mainpage"}


LoadError (No such file to load -- application.rb):

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`load''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`require_or_load''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`silence_warnings''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`require_or_load''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:17:in
`depend_on''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:51:in
`require_dependency''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:51:in
`require_dependency''
    /usr/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in
`dispatch''
    /home/balcer/Projects/cc/www/cc/public/dispatch.cgi:10


Rendering
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)

|

in apache error.log

[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6]
/home/balcer/Projects/cc/www/cc/public/../app/models/book_review.rb:5:
superclass must be a Class (NilClass given) (TypeError)
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/home/balcer/Projects/cc/www/cc/public/../app/models/article.rb:3
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/home/balcer/Projects/cc/www/cc/public/../app/models/article.rb:2
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`load''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/action_controller/support/dependencies.rb:47:in
`require_or_load''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \t ... 39 levels...
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:62:in
`const_get''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:62:in
`controller_class''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/usr/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:46:in
`dispatch''
[Wed Jan 05 19:28:38 2005] [error] [client 192.168.0.6] \tfrom
/home/balcer/Projects/cc/www/cc/public/dispatch.cgi:10

Can''t guest what is wrong, please help:)
Cheers, Jacek Balcerski