On Aug 10, 7:47 pm, Perry Smith <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to