Re: gem update rails problem

Ben Schumacher
Wed, 05 Jan 2005 18:48:40 -0000

Jacek-

>From David''s announcement email:

Upgrading from Rails 0.9.2 to 0.9.3
==================================
There''s only one change you need to make in order to have your
application updated from 0.9.2 to 0.9.3. In the
config/environments/production.rb and config/environments/test.rb, you
need to change:

  ActionController::Base.reload_dependencies = false
  ActiveRecord::Base.reload_associations     = false

...to:

  Dependencies.mechanism = :require

And in config/environments/development.rb, you need to change:

  ActionController::Base.reload_dependencies = true
  ActiveRecord::Base.reload_associations     = true

...to:

  Dependencies.mechanism = :load

Cheers,

Ben

On Wed, 05 Jan 2005 19:41:25 +0100, Jacek Balcerski
<balcer-9xCVZmnPtnEYDkwjdqtpGQ@public.gmane.org>
wrote:
> 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
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>