Listing tasks

<% @tasks.each do |task| %> <% end %>
Name Project Description Parent
<%=h task.name %> <%= link_to h(task.project.name), project_path(task.project) %> <%=h task.description %> <%=h task.parent %> <%= link_to 'Show', project_task_path(@project, task) %> <%= link_to 'Edit', edit_project_task_path(@project, task) %> <%= link_to 'Destroy', project_task_path(@project, task), :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New task', new_project_task_path(@project) %>