I am going through the “Programming Phoenix 1.4” book and I am on page 51. When I place the code in template/index.html.eex I get the error listed in the image. The book doesn’t say that I would receive an error. I have no idea how to even begin to troubleshoot it.
The error occurs when I place the code below in In templates/user/index.html.eex
<h1>Listing Users</h1> <table> <%= for user <- @users do %> <tr> <td><%= render "user.html", user: user %></td> <td><%= link "View", to: Routes.user_path(@conn, :show, user.id) %></td> </tr> <% end %> </table>