diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-09 17:55:26 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-09 17:55:26 +0000 |
commit | 955fa6151aabfbe0626c84005cb0cad27da3e5c3 (patch) | |
tree | 8d9175f86572bbf00f5e3f021e7b6c7b3804e3f2 /actionpack/examples/debate | |
parent | 73c70836515879f69a152535f3ab411acc3317b8 (diff) | |
download | rails-955fa6151aabfbe0626c84005cb0cad27da3e5c3.tar.gz rails-955fa6151aabfbe0626c84005cb0cad27da3e5c3.tar.bz2 rails-955fa6151aabfbe0626c84005cb0cad27da3e5c3.zip |
The examples are outdated and misleading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/examples/debate')
-rw-r--r-- | actionpack/examples/debate/index.erb | 14 | ||||
-rw-r--r-- | actionpack/examples/debate/index.rhtml | 0 | ||||
-rw-r--r-- | actionpack/examples/debate/new_topic.erb | 22 | ||||
-rw-r--r-- | actionpack/examples/debate/new_topic.rhtml | 0 | ||||
-rw-r--r-- | actionpack/examples/debate/topic.erb | 32 | ||||
-rw-r--r-- | actionpack/examples/debate/topic.rhtml | 0 |
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 |