railsでdeviseのログイン機能システムを作っています。
新規登録して一度トップページに戻ると以下のエラーメッセージが発生しました。
Started GET "/" for ::1 at 2021-03-13 00:19:30 +0900
Processing by TopController#index as HTML
Rendering top/index.html.erb within layouts/application
Rendered top/index.html.erb within layouts/application (Duration: 0.1ms | Allocations: 74)
[Webpacker] Everything's up-to-date. Nothing to do
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms | Allocations: 7602)
controllers/top_controller.rb
class TopController < ApplicationController
def index
end
end
views/top/indexhtml.rb
<div class="jumbotron"> <div class="container"> <nav class="navbar navbar-light"> <h1>マッチングを探す</h1> </div> <div class="top-authentication text-center"> <div class="top-authentication__sign-up-btn m-3"> <%= link_to "アカウントを作成する", new_user_registration_path, class: "btn text-white" %> </div> <div class="top-authentication__sign-in-btn m-3"> <%= link_to "ログイン", new_user_session_path, class: "btn text-white" %> </div> </div> </div>試したこと
先程までは遷移していましたが、
新規登録をして、シークエルプロにもデータがしっかりと保存されています。
保存がされると遷移しなくなるので原因がわかりません。
どうかご教授お願いいたします。
あなたの回答
tips
プレビュー