Jeremy Seitz
2007-Apr-21 17:29 UTC
Re: Error Starting Rails - DEPRECATED_INSTANCE_VARIABLES
Matt Stone wrote:> `const_missing'': uninitialized constant > ActionController::Base::DEPRECATED_INSTANCE_VARIABLES (NameError) > from >I''m running into the same problem on a debian install (not a virtual machine). I would appreciate and information you might have discovered to help solve this problem! Jeremy -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2007-Apr-21 20:47 UTC
Re: Error Starting Rails - DEPRECATED_INSTANCE_VARIABLES
Hi, could you post the relevant code? -Conrad On 4/21/07, Jeremy Seitz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Matt Stone wrote: > > `const_missing'': uninitialized constant > > ActionController::Base::DEPRECATED_INSTANCE_VARIABLES (NameError) > > from > > > > I''m running into the same problem on a debian install (not a virtual > machine). I would appreciate and information you might have discovered > to help solve this problem! > > > Jeremy > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy Seitz
2007-Apr-22 14:41 UTC
Re: Error Starting Rails - DEPRECATED_INSTANCE_VARIABLES
Conrad Taylor wrote:> Hi, could you post the relevant code? > > -ConradHmm. That''s the problem, I don''t know what the relevant code is. This happens whenever mongrel_rails is started. It also happens when I start script/console: $ script/console Loading development environment. /home/jeremy/sites/dnweb/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing'':NameError: uninitialized constant ActionController::Base::DEPRECATED_INSTANCE_VARIABLES /home/jeremy/sites/dnweb/app/controllers/application.rb:2:in `helper'':ArgumentError: wrong number of arguments (1 for 0)>>Now, application.rb, line 2, simply has : helper :all I don''t see why "helper" would require zero arguments. We''re using edge rails, the most recent release (as of Friday). It''s frozen in our /vendor tree. This same setup works well under OSX but fails on debian. If I remove the vendor/rails tree and let it drop back to the installed version of rails (1.2.3) via gem, it fails as well: $ script/console Loading development environment. /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:328:in `send'':NoMethodError: undefined method `session='' for ActionController::Base:Class I suspect there is some version mismatch between rails and something in our debian environment. Or perhaps there''s something rails needs that is missing. I was hoping someone had seen this problem before and would reply "Hey, you just need to do X,Y,Z and it''s easy to fix." Guess not? :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy Seitz
2007-Apr-22 22:58 UTC
Re: Error Starting Rails - DEPRECATED_INSTANCE_VARIABLES
Ok, I found the problem(s)... updating to ruby 1.8.5 (had 1.8.4 previously) fixed the DEPRECATED_INSTANCE_VARIABLES error. As for the other two errors I had with helper and session: 1. helper problem: I''m not really sure why, but the following code, in app/controllers/application.rb, worked under OSX, using rails 1.2.3 and ruby 1.8.5: class ApplicationController < ActionController::Base helper :all However, under my debian environment, it failed. So I changed it to load the helpers I needed: class ApplicationController < ActionController::Base helper :css, :text, :list, etc... 2. `send'':NoMethodError: undefined method `session='' for ActionController::Base:Class I had this line in environment.rb: config.action_controller.session = { :secret => "xxxxxx" } I remember putting this line in a long time ago when troubleshooting problems with sessions. I had read online that this helped. In any case, I had to remove it to make the error message go away. It does not seem like it was really needed, since the app works now :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---