app/views/topics/index.html.slim
h1 Listing topics
table
thead
tr
th Topic
th Description
th Added by
th
th
th
tbody
- @topics.each do |topic|
tr
td = topic.topic
td = topic.description
td = topic.added_by
td = link_to 'Show', topic
td = link_to 'Edit', edit_topic_path(topic)
td = link_to 'Destroy', topic, data: { confirm: 'Are you sure?' }, method: :delete
br
= link_to 'New Topic', new_topic_path