質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

2956閲覧

Puma caught this error: uninitialized constant ActionText::Engine::ApplicationController (Nameor)

ma-------ro

総合スコア8

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/07/02 15:22

前提・実現したいこと

blogサイトを作成したいと考えています。

作成するにあたり、localhost:3000にてindex.htmlの画面を表示したいのですが、エラーとなってしまいます。
フォルダ名articlesです。

発生している問題・エラーメッセージ

Puma caught this error: uninitialized constant ActionText::Engine::ApplicationController (NameError)

Puma caught this error: uninitialized constant ActionText::Engine::ApplicationController (NameError) /Library/Ruby/Gems/2.6.0/gems/actiontext-6.0.3.2/lib/action_text/engine.rb:47:in `block (2 levels) in <class:Engine>' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:428:in `instance_exec' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:428:in `block in make_lambda' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:200:in `block (2 levels) in halting' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:605:in `block (2 levels) in default_terminator' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:604:in `catch' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:604:in `block in default_terminator' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:201:in `block in halting' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `block in invoke_before' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `each' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `invoke_before' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:134:in `run_callbacks' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:119:in `complete!' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:76:in `ensure in block in run!' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:76:in `block in run!' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:70:in `tap' /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:70:in `run!' /Library/Ruby/Gems/2.6.0/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/executor.rb:12:in `call' /Library/Ruby/Gems/2.6.0/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/static.rb:126:in `call' /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call' /Library/Ruby/Gems/2.6.0/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/host_authorization.rb:82:in `call' /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/dev_server_proxy.rb:23:in `perform_request' /Library/Ruby/Gems/2.6.0/gems/rack-proxy-0.6.5/lib/rack/proxy.rb:57:in `call' /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/engine.rb:527:in `call' /Library/Ruby/Gems/2.6.0/gems/puma-4.3.5/lib/puma/configuration.rb:228:in `call' /Library/Ruby/Gems/2.6.0/gems/puma-4.3.5/lib/puma/server.rb:713:in `handle_request' /Library/Ruby/Gems/2.6.0/gems/puma-4.3.5/lib/puma/server.rb:472:in `process_client' /Library/Ruby/Gems/2.6.0/gems/puma-4.3.5/lib/puma/server.rb:328:in `block in run' /Library/Ruby/Gems/2.6.0/gems/puma-4.3.5/lib/puma/thread_pool.rb:134:in `block in spawn_thread'

該当するコード

routes.rb Rails.application.routes.draw do resources :articles root "articles#index" # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end
articles_controller.rb class ArticlesController < ApplicationController def index end def show end def edit end def new end end

調べたところこのエラーはクラスの表記をしていない場合に発生するエラーのようですが、クラス表記等のミスを見つけることが出来ませんでした。よろしくお願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

パソコンを再起動し、再度ログインしたところ、エラーは解除されました。

投稿2020/07/05 08:27

ma-------ro

総合スコア8

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問