aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/debate/index.erb
blob: ddaa87da5793e69d320967ed040d68f029e0b63a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<body>
<h1>Topics</h1>

<%= link_to "New topic", :action => "new_topic" %>

<ul>
<% for topic in @topics %>
  <li><%= link_to "#{topic.title} (#{topic.replies.length} replies)", :action => "topic", :path_params => { "id" => topic.id } %></li>
<% end %>
</ul>

</body>
</html>