josevalim/inherited_resources — Issue #188: Error when running in production
Author: amaierhofer
Created: 2011-12-19 11:19:39+00:00
State: open

Hello,

I have encountered problems when trying to run in production, everything works just fine in development mode. Here is what i am doing.

```
/tmp❯ ruby -v; rails -v
ruby 1.9.3p0 (2011-11-08 revision 33661) [x86_64-linux]
Rails 3.1.3

/tmp❯ rails new sample && cd sample
/tmp/sample❯ echo "gem 'inherited_resources'" >> Gemfile

/tmp/sample❯ sed -i 's/ActionController/InheritedResources/' app/controllers/application_controller.rb
/tmp/sample❯ bundle && RAILS_ENV=production rails s

/home/xxx/.rvm/gems/ruby-1.9.3-head@rails/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:490:in `load_missing_constant': Expected /home/xxx/.rvm/gems/ruby-1.9.3-head@rails/gems/inherited_resources-1.3.0/app/controllers/inherited_resources/base.rb to define InheritedResources::Base (LoadError)
from /home/xxx/.rvm/gems/ruby-1.9.3-head@rails/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:181:in `block in const_missing'
from /home/xxx/.rvm/gems/ruby-1.9.3-head@rails/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:179:in `each'
from /home/xxx/.rvm/gems/ruby-1.9.3-head@rails/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:179:in `const_missing'
from /tmp/sample/app/controllers/application_controller.rb:1:in `'
```

Can somebody help me understand what's going wrong and how this can be fixed?