infusionvlc/ConexionFelina

View on GitHub
app/views/colonies/show.html.erb

Summary

Maintainability
Test Coverage
<h1><%= @colony.name %></h1>
<p><%= @colony.bio %></p>
<br/>
<% @colony.tasks.each do | task | %>
  <%= link_to task.name, task_path( task.id ) %><br/>
  <%= task.description %><br/>
  <%= link_to "Assign this task to a user", new_task_user_wizard_path(task_id: task.id) %><br/>
  <%= link_to "destroy", assignment_path(Assignment.where(colony_id:@colony.id, task_id:task.id).first), method: :delete %><hr/>
<% end %>

<%= link_to "List of Assignment", assignments_path(colony_id: @colony.id) %><br/>
<%= link_to "add assignment", new_assignment_path(colony_id: @colony.id) %><br/>
<%= link_to "edit", edit_colony_path(@colony.id) %><br/>
<%= link_to "destroy", colony_path(@colony.id), method: :delete %>