rails/rails — Issue #4737: Missing helper file (LoadError)
Author: OliverLetterer
Created: 2012-01-28 21:15:28+00:00
State: open

If i create a new mountable engine with

```ruby
rails plugin new some-3.1-plugin_version --mountable
```
and try to run `rake` from terminal, I always get the following error messages:

```ruby
/Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:317:in `rescue in depend_on': Missing helper file helpers/some_3.1_plugin_version/application_helper.rb (LoadError)
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:312:in `depend_on'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:225:in `require_dependency'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/abstract_controller/helpers.rb:131:in `map!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/abstract_controller/helpers.rb:131:in `modules_for_helpers'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/action_controller/metal/helpers.rb:92:in `modules_for_helpers'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/abstract_controller/helpers.rb:95:in `helper'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/actionpack-3.2.1/lib/action_controller/railties/paths.rb:18:in `block (2 levels) in with'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/app/controllers/some-3.1-plugin_version/application_controller.rb:2:in `'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/app/controllers/some-3.1-plugin_version/application_controller.rb:1:in `'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:359:in `require_or_load'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:313:in `depend_on'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:225:in `require_dependency'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:438:in `each'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:438:in `block in eager_load!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:436:in `each'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:436:in `eager_load!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/application/railties.rb:8:in `each'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/application/railties.rb:8:in `all'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/engine.rb:434:in `eager_load!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/application/finisher.rb:53:in `block in '
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/test/dummy/config/environment.rb:5:in `'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/test/test_helper.rb:4:in `require'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/test/test_helper.rb:4:in `'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/test/integration/navigation_test.rb:1:in `require'
from /Users/oliver/Development/ebf/rails/temp/some-3.1-plugin_version/test/integration/navigation_test.rb:1:in `'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in

'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in

'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p0@connector.server/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `

'
rake aborted!
Command failed with status (1): [/Users/oliver/.rvm/rubies/ruby-1.9.3-p0/bi...]

Tasks: TOP => default => test
(See full trace by running task with --trace)
```

I guess the most important part is `Missing helper file helpers/some_3.1_plugin_version/application_helper.rb (LoadError)` which looks like the folder is not named correctly. The generator created the folder `some-3.1-plugin_version`. Im running rails 3.2.1 and ruby 1.9.3-p0. Im not sure if Im not supposed to use `-` in rails application names.