aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/debate
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples/debate')
-rw-r--r--actionpack/examples/debate/index.erb14
-rw-r--r--actionpack/examples/debate/index.rhtml0
-rw-r--r--actionpack/examples/debate/new_topic.erb22
-rw-r--r--actionpack/examples/debate/new_topic.rhtml0
-rw-r--r--actionpack/examples/debate/topic.erb32
-rw-r--r--actionpack/examples/debate/topic.rhtml0
6 files changed, 0 insertions, 68 deletions
diff --git a/actionpack/examples/debate/index.erb b/actionpack/examples/debate/index.erb
deleted file mode 100644
index ddaa87da57..0000000000
--- a/actionpack/examples/debate/index.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-<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
diff --git a/actionpack/examples/debate/index.rhtml b/actionpack/examples/debate/index.rhtml
deleted file mode 100644
index e69de29bb2..0000000000
--- a/actionpack/examples/debate/index.rhtml
+++ /dev/null
diff --git a/actionpack/examples/debate/new_topic.erb b/actionpack/examples/debate/new_topic.erb
deleted file mode 100644
index f52a69cc31..0000000000
--- a/actionpack/examples/debate/new_topic.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-<html>
-<body>
-<h1>New topic</h1>
-
-<form action="<%= url_for(:action => "create_topic") %>" method="post">
- <p>
- Title:<br>
- <input type="text" name="topic[title]">
- </p>
-
- <p>
- Body:<br>
- <textarea name="topic[body]" style="width: 200px; height: 200px"></textarea>
- </p>
-
- <p>
- <input type="submit" value="Create topic">
- </p>
-</form>
-
-</body>
-</html> \ No newline at end of file
diff --git a/actionpack/examples/debate/new_topic.rhtml b/actionpack/examples/debate/new_topic.rhtml
deleted file mode 100644
index e69de29bb2..0000000000
--- a/actionpack/examples/debate/new_topic.rhtml
+++ /dev/null
diff --git a/actionpack/examples/debate/topic.erb b/actionpack/examples/debate/topic.erb
deleted file mode 100644
index e247c00f0d..0000000000
--- a/actionpack/examples/debate/topic.erb
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<body>
-<h1><%= @topic.title %></h1>
-
-<p><%= @topic.body %></p>
-
-<%= link_to "Back to topics", :action => "index" %>
-
-<% unless @topic.replies.empty? %>
- <h2>Replies</h2>
- <ol>
- <% for reply in @topic.replies %>
- <li><%= reply.body %></li>
- <% end %>
- </ol>
-<% end %>
-
-<h2>Reply to this topic</h2>
-
-<form action="<%= url_for(:action => "create_reply") %>" method="post">
- <input type="hidden" name="reply[topic_id]" value="<%= @topic.id %>">
- <p>
- <textarea name="reply[body]" style="width: 200px; height: 200px"></textarea>
- </p>
-
- <p>
- <input type="submit" value="Create reply">
- </p>
-</form>
-
-</body>
-</html> \ No newline at end of file
diff --git a/actionpack/examples/debate/topic.rhtml b/actionpack/examples/debate/topic.rhtml
deleted file mode 100644
index e69de29bb2..0000000000
--- a/actionpack/examples/debate/topic.rhtml
+++ /dev/null