Nested routes, Listed tasks associated with projects
This commit is contained in:
10
app/views/projects/show.html.erb
Normal file
10
app/views/projects/show.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<h1><%= @project.project_name %></h1>
|
||||
<p><%= @project.description %></p>
|
||||
|
||||
<ul>
|
||||
<% @project.tasks.each do |task| %>
|
||||
<li>
|
||||
<%= task.title %> (<%= task.status %>)
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user