Nested resource definition is as follows:
map.resources :projects do |projects|
projects.resources :iterations
end And in the project under the index view using the following code:
<% for project in @projects %>
<tr>
<td><%=h project.name %></td>
<td><%=h project.des %></td>
<td><%= link_to 'Show', project %></td>
<td><%= link_to 'Edit', edit_project_path(project) %></td>
<td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td>
<td><%= link_to 'Iterations', iterations_path(project) %>
</td>
</tr>
<% end %> Results page error:
iterations_path undefined
I would like to ask how are going on? The teaching materials are too old to it?







