NoMethodError in Notes#index と表示されます。
_note.html.erb のline #2がおかしいようです。
_note.html.erbは
<li>
<%= image_for(note.user) %>
<span class="user-name">
<%= note.user.name %>
</span>
<span class="content">
<%= link_to note.content, note_path(note.id) %>
<div>
<small>
<%= note.likes.count %>人がいいね!といっています
</small>
</div>
</span>
<span>
<%= note.created_at.strftime("%Y-%m-%d %H:%M:%S") %>
</span>
</li>
のようなコードになっています。
また、index.html.erbは
<h1 class="heading">ユーザー一覧</h1>
<ul class="user-list">
<% @users.each do |user| %>
<li>
<!-- image_tagヘルパーを用いてapp/assets/imagesフォルダの中のwanko.pngを表示してください -->
<%= image_for(user) %>
<%= link_to user.name, user %> |
<%= user.email %>
</li>
<% end %>
</ul>
<p id="notice"><%= notice %></p>
<h1>Listing Users</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr>
<td><%= user.name %></td>
<td><%= user.email %></td>
<td><%= link_to 'Show', user %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New User', new_user_path %>
のようになっています。
どこが間違っているのでしょうか?
教えてください。(初心者です)イタリックテキスト