Skip to content

Instantly share code, notes, and snippets.

@deepakprasanna
Created June 23, 2009 09:52
Show Gist options
  • Save deepakprasanna/134459 to your computer and use it in GitHub Desktop.
Save deepakprasanna/134459 to your computer and use it in GitHub Desktop.
<html>
<body>
<h2>Forums</h2>
<br />
<select id="forum_list">
<% for forum in @forums %>
<option value ="<%= forum.id %>"><%= link_to h(forum.name), forum_path(forum.id) %></option><br />
<b>Description :</b><%=h forum.description %><br />
<b>Total Topics :</b><%=h forum.topics.count %><br /><br />
<%= link_to "Show", forum_path(forum) %>
<%= link_to "Edit", edit_forum_path(forum) %>
<%= link_to "Destroy", forum, :confirm => 'Are you sure?', :method => :delete %><br /><br />
<% end %>
</select>
<p><%= link_to "New Forum", new_forum_path %></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment