localhost:3000 に接続すると、次のエラー メッセージが表示されます。
AbstractController::Helpers::ClassMethods::MissingHelperError in PoemsController#index
Missing helper file helpers/profiles_helper.rb
ただし、ファイルはそこにあります。irbでは、
2.0.0-p195 :001 > f = File.open(File.join(Rails.root, 'app', 'helpers', 'profiles_helper.rb'))
=> # <File:/Users/carlson/Dropbox/prog/rails_projects/verz/app/helpers/profiles_helper.rb>
また、rake を実行すると、次のようになります。
$ rake
rake aborted!
Missing helper file helpers/profiles_helper.rb
/Users/carlson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack- 4.0.0/lib/abstract_controller/helpers.rb:137:in `rescue in block in modules_for_helpers'
/Users/carlson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.0/lib/abstract_controller/helpers.rb:134:in `block in modules_for_helpers'
/Users/carlson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.0/lib/abstract_controller/helpers.rb:130:in `map!'
/Users/carlson/.rvm/gems/ruby-2.0.0-p195/gems/actionpack-4.0.0/lib/abstract_controller/helpers.rb:130:in `modules_for_helpers'
ブラウザからのエラーメッセージの詳細は次のとおりです
Extracted source (around line #1):
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :null_session
end
私は困惑しています!
ジム