I am getting: uninitialized constant RbConfig::RetusersController My routes look like this: map.namespace(:config) do |config| config.resources :users do |user| user.resources :retusers end end and I am calling redirect with: redirect_to edit_config_user_retuser_url(application_user, retuser) where application_user is a User and retuser is a Retuser. In app/controllers/retusers_controller.rb I have: class RetusersController < ApplicationController ... end On my development platform, I do not get the error. On my production platform I do. The two should be the same ruby and set of gems. This is using Rails 2.3.11 and Ruby 1.9.1. What am I doing wrong? Thank you, pedz -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Aug 10, 7:47 pm, Perry Smith <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am getting: > > uninitialized constant RbConfig::RetusersController > > My routes look like this: > > map.namespace(:config) do |config| > config.resources :users do |user| > user.resources :retusers > end > end > > and I am calling redirect with: > > redirect_to edit_config_user_retuser_url(application_user, > retuser) > > where application_user is a User and retuser is a Retuser. > > In app/controllers/retusers_controller.rb I have: > > class RetusersController < ApplicationController > ... > end > > On my development platform, I do not get the error. On my production > platform I do. The two should be the same ruby and set of gems. This > is using Rails 2.3.11 and Ruby 1.9.1. > > What am I doing wrong? >Well on ruby 1.9.2, the Config constant is an alias for RbConfig, which I think is the root of your troubles. Why it happens only in production I don''t know. (probably not a factor, ruby 1.9.2 is the first ruby 1.9 version I''d want to use in production) Fred> Thank you, > pedz > > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, Thanks. Yea. I''m trying to get this "stable" before moving to 1.9.2... but I''m getting into a circular problem. I was on 1.9.1 before 1.9.2 came out. So.... long story short it sounds like I don''t want to use "config" as a namespace. Thank you for your help pedz -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.