ID | Title | Content | Created On | <% @contact.tasks.each do |task| %> |
---|---|---|---|---|
<%= task.id %> | <%= task.title %> | <%= task.content %> | <%= task.created_at.strftime("%d %b. %Y") %> | <%= link_to 'Show', [blast, task], class: 'btn btn-primary' %> <%= link_to 'Edit', blast.edit_task_path(task), class: 'btn btn-primary' %> <%= link_to 'Destroy', [blast, task], class: 'btn btn-primary' , method: :delete, data: { confirm: 'Are you sure?' } %> |