Encountering an issue while attempting to set up edit and update functions using Sails.js. The error occurs upon clicking the edit button.
<html>
<body>
<table>
<thead>
<th>id</th>
<th>name</th>
</thead>
<tbody>
<% for(var i=0; i<categories.length; i++){ %>
<tr>
<td> <%= categories[i].id %> </td>
<td> <%= categories[i].name %> </td>
</tr>
<a href="category/edit?id=<%= categories[i].id %>">Edit</a> //when click on this it should be appeared to edit page. but instead I got an error
<% } %>
</tbody>
</table>
</body>
</html>
Error encountered during the process
Apologies for providing links to images, unsure of how to proceed.