localhost:3000で立ち上げると、
zsh
1=> Booting Puma 2=> Rails 5.2.4.3 application starting in development 3=> Run `rails server -h` for more startup options 4Puma starting in single mode... 5* Version 3.12.6 (ruby 2.6.5-p114), codename: Llamas in Pajamas 6* Min threads: 5, max threads: 5 7* Environment: development 8* Listening on tcp://localhost:3000 9Use Ctrl-C to stop 10Started GET "/" for ::1 at 2020-08-08 14:25:48 +0900 11 (10.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 12 13 (省略) 14 15 16Started GET "//ws" for ::1 at 2020-08-08 14:25:53 +0900 17 18ActionController::RoutingError (No route matches [GET] "/ws"): 19 20actionpack (5.2.4.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' 21web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' 22web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' 23web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' 24web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' 25actionpack (5.2.4.3) lib/action_dispatch/middleware/
/ws
とは、何なのでしょうか?
ルーティングエラーも発生していて、どのように解決したらよいのでしょうか?
ログイン機能の実装にdeviseを使っています。それが関係しているのでしょうか?
rack
が関係しているのでしょうか?
調べてもよくわかりませんでした。
zsh
1railsPosts (master=) % rails routes 2 Prefix Verb URI Pattern Controller#Action 3 new_user_session GET /users/sign_in(.:format) devise/sessions#new 4 user_session POST /users/sign_in(.:format) devise/sessions#create 5 destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy 6 new_user_password GET /users/password/new(.:format) devise/passwords#new 7 edit_user_password GET /users/password/edit(.:format) devise/passwords#edit 8 user_password PATCH /users/password(.:format) devise/passwords#update 9 PUT /users/password(.:format) devise/passwords#update 10 POST /users/password(.:format) devise/passwords#create 11 cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel 12 new_user_registration GET /users/sign_up(.:format) devise/registrations#new 13 edit_user_registration GET /users/edit(.:format) devise/registrations#edit 14 user_registration PATCH /users(.:format) devise/registrations#update 15 PUT /users(.:format) devise/registrations#update 16 DELETE /users(.:format) devise/registrations#destroy 17 POST /users(.:format) devise/registrations#create 18 root GET / homes#index 19 users GET /users(.:format) users#index 20 POST /users(.:format) users#create 21 new_user GET /users/new(.:format) users#new 22 edit_user GET /users/:id/edit(.:format) users#edit 23 user GET /users/:id(.:format) users#show 24 PATCH /users/:id(.:format) users#update 25 PUT /users/:id(.:format) users#update 26 DELETE /users/:id(.:format) users#destroy 27 posts GET /posts(.:format) posts#index 28 POST /posts(.:format) posts#create 29 new_post GET /posts/new(.:format) posts#new 30 edit_post GET /posts/:id/edit(.:format) posts#edit 31 post GET /posts/:id(.:format) posts#show 32 PATCH /posts/:id(.:format) posts#update 33 PUT /posts/:id(.:format) posts#update 34 DELETE /posts/:id(.:format) posts#destroy 35 refile_app /attachments #<Refile::App app_file="/Users/furukawakimikazu/.rbenv/gems/2.6.0/bundler/gems/refile-46b4178654e6/lib/refile/app.rb"> 36 rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show 37rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show 38 rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show 39update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update 40 rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
routes
1Rails.application.routes.draw do 2 devise_for :users 3 root 'homes#index' 4 resources :users 5 resources :posts 6end
よろしくご教授の程、お願いいたします。
あなたの回答
tips
プレビュー