2016-10-09 19 views
2

これは、初めてのRubyアプリケーションをレールサーバーで実行しているときの私のエラーです。時々、私は乗り切ることができます。時には、このエラーは60%になることがあります。AbstractController :: Helpers :: RailsのMissingHelperError :: WelcomeController#index

My Code

My Error screen

AbstractController::Helpers::MissingHelperError in Rails::WelcomeController#index 
Missing helper file helpers/c:/users/benjamin/desktop/pinteresting/app/helpers/application_helper.rb_helper.rb 

Rails.root: c:/Users/Benjamin/desktop/pinteresting 
Application Trace | Framework Trace | Full Trace 

actionpack (4.2.5.1) lib/abstract_controller/helpers.rb:151:in `rescue in block in modules_for_helpers' 
actionpack (4.2.5.1) lib/abstract_controller/helpers.rb:148:in `block in modules_for_helpers' 
actionpack (4.2.5.1) lib/abstract_controller/helpers.rb:144:in `map!' 
actionpack (4.2.5.1) lib/abstract_controller/helpers.rb:144:in `modules_for_helpers' 
actionpack (4.2.5.1) lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers' 
actionpack (4.2.5.1) lib/abstract_controller/helpers.rb:108:in `helper' 
actionpack (4.2.5.1) lib/action_controller/railties/helpers.rb:17:in `inherited' 
railties (4.2.5.1) lib/rails/application_controller.rb:1:in `<top (required)>' 
activesupport (4.2.5.1) lib/active_support/dependencies.rb:274:in `require' 
activesupport (4.2.5.1) lib/active_support/dependencies.rb:274:in `block in require' 
activesupport (4.2.5.1) lib/active_support/dependencies.rb:240:in `load_dependency' 
activesupport (4.2.5.1) lib/active_support/dependencies.rb:274:in `require' 
railties (4.2.5.1) lib/rails/welcome_controller.rb:1:in `<top (required)>' 
activesupport (4.2.5.1) lib/active_support/inflector/methods.rb:263:in `const_get' 
activesupport (4.2.5.1) lib/active_support/inflector/methods.rb:263:in `block in constantize' 
activesupport (4.2.5.1) lib/active_support/inflector/methods.rb:259:in `each' 
activesupport (4.2.5.1) lib/active_support/inflector/methods.rb:259:in `inject' 
activesupport (4.2.5.1) lib/active_support/inflector/methods.rb:259:in `constantize' 
activesupport (4.2.5.1) lib/active_support/dependencies.rb:566:in `get' 
+0

あなたの質問にコードを投稿してください。リンクをクリックすると404が表示されます。 – bork

+0

'helper file helpers/c:/ users/benjamin/desktop/pinteresting/app/helpers/application_helper.rb_helper.rb'が見つかりません - このパスには何か問題があります。これは' helpers/c: 'ディレクトリにあります。これは、ソースコードの由来は何ですか? StackOverflowの質問ではgithubリポジトリにリンクするだけでは不十分です。関連するすべてのコードを含める必要があります。 –

+0

アプリケーション名を「Pinteresting」から「pinteresting」に変更します。 –

答えて

0

[SOLVED]私は同じ問題がありました。私が気づいたのは、別のドライブ(たとえばD:/)の別のディレクトリで新しいレールアプリケーションを実行しているときに発生するということです。私はあなたがあなたがdevyをインストールしたドライブで実行することが重要だと信じています。(あなたのdevkitをインストールし、ruby dk.rb initを実行してからruby dk.rb installを実行することを忘れないでください)。

ステップ

  1. 再実行の逸品
  2. 実行して、あなたのルビーのインストールフォルダに

  3. ランレール秒またはレールを新しい[私のアプリケーション名]相対レール新鮮なレールを取り付けますサーバ

  4. yay!あなたはあなたのレールアプリケーションを起動しています
+0

あなたのアプリケーションはあなたのドライブにある可能性があります:/(私はRubyとして私の名前をつけたので、私はC:/ Rubyを持っています) – Ralphkay

関連する問題