ArgumentError in Notes#indexのエラーが出ました。First argument in form cannot contain nil or be emptyとまた表示されました。
_form.html.erbに記述したのは以下の通りです。
<%= form_for (@note) do |f| %>←ここの部分がおかしいそうです
<% if @note.errors.any? %>
<div id="error_explanation" class="alert alert-danger">
<h2><%= @note.errors.count %>件のエラー:</h2>
<ul> <% @note.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div>
<% end %>
フォームはもうすでに完成しているので、どうしてform cannot contain nil or be emptyと表示されるのかわかりません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。