###前提・実現したいこと
Ruby on Rails チュートリアル:実例を使って Rails を学ぼうでrailsを学習しています。
第3章の
- リスト 3.4: helloアクションをApplicationコントローラーに追加する
- リスト 3.5: ルートルーティングを設定する
上記を行いHerokuにデプロイしたところでApplicationエラーになり
ローカルで動かしてみると下記のエラーが出力されます。
###発生している問題・エラーメッセージ
Puma caught this error: Invalid option key: raise_on_unfiltered_parameters= (RuntimeError) /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/railtie.rb:60:in `block (3 levels) in <class:Railtie>' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/railtie.rb:55:in `each' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/railtie.rb:55:in `block (2 levels) in <class:Railtie>' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/lazy_load_hooks.rb:43:in `instance_eval' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/lazy_load_hooks.rb:43:in `execute_hook' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/lazy_load_hooks.rb:50:in `block in run_load_hooks' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/lazy_load_hooks.rb:49:in `each' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/lazy_load_hooks.rb:49:in `run_load_hooks' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/base.rb:269:in `<class:Base>' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/base.rb:164:in `<module:ActionController>' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_controller/base.rb:5:in `<top (required)>' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/dependencies.rb:293:in `require' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/dependencies.rb:293:in `block in require' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/dependencies.rb:259:in `load_dependency' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/activesupport-5.0.3/lib/active_support/dependencies.rb:293:in `require' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_dispatch/middleware/static.rb:77:in `ext' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_dispatch/middleware/static.rb:33:in `match?' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/actionpack-5.0.3/lib/action_dispatch/middleware/static.rb:130:in `call' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/railties-5.0.3/lib/rails/engine.rb:522:in `call' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run' /Users/username/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
###該当のソースコード
rails
1class ApplicationController < ActionController::Base 2 protect_from_forgery with: :exception 3 4 def hello 5 render html: "hello, world!" 6 end 7end
Rails.application.routes.draw do root 'application#hello' end
source 'https://rubygems.org' gem 'rails', '5.0.3' gem 'puma', '3.9.1' gem 'sass-rails', '5.0.6' gem 'uglifier', '3.2.0' gem 'coffee-rails', '4.2.2' gem 'jquery-rails', '4.3.1' gem 'turbolinks', '5.0.1' gem 'jbuilder', '2.7.0' group :development, :test do gem 'sqlite3', '1.3.13' gem 'byebug', '9.0.6', platform: :mri end group :development do gem 'web-console', '3.5.1' gem 'listen', '3.0.8' gem 'spring', '2.0.2' gem 'spring-watcher-listen', '2.0.1' end group :test do gem 'rails-controller-testing', '1.0.2' gem 'minitest-reporters', '1.1.14' gem 'guard', '2.13.0' gem 'guard-minitest', '2.4.4' end group :production do gem 'pg', '0.18.4' end
###試したこと
下記の
Gemfile
application_controller.rb
routes.rb
のみしか編集しておらず、第1、2章で同じことをやって
うまくいっていたのですが
上記のエラーはどういったことが原因でおこるのでしょう?
どなたかご教示いただけましたら、幸いです。
よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。