aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/debate/index.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples/debate/index.rhtml')
-rw-r--r--actionpack/examples/debate/index.rhtml14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/examples/debate/index.rhtml b/actionpack/examples/debate/index.rhtml
new file mode 100644
index 0000000000..ddaa87da57
--- /dev/null
+++ b/actionpack/examples/debate/index.rhtml
@@ -0,0 +1,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> \ No newline at end of file