Last active
June 13, 2016 04:36
-
-
Save bnorberg/a4be9f1caf48cd3f4e9f55d4de5566fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Listing Topics</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Title</th> | |
<th>Description</th> | |
<th colspan="3"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @topics.each do |topic| %> | |
<tr> | |
<td><%= topic.title %></td> | |
<td><%= topic.description %></td> | |
<td><%= link_to 'Show', topic %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
<br> | |
<%= link_to 'New Topic', new_topic_path %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment