From 21187c0fb4fc559927a2f947f909dedd85969ffb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 21 Feb 2007 00:29:44 +0000 Subject: Apply the rest of Chads patch git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/examples/debate/topic.erb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 actionpack/examples/debate/topic.erb (limited to 'actionpack/examples/debate/topic.erb') diff --git a/actionpack/examples/debate/topic.erb b/actionpack/examples/debate/topic.erb new file mode 100644 index 0000000000..e247c00f0d --- /dev/null +++ b/actionpack/examples/debate/topic.erb @@ -0,0 +1,32 @@ + + +

<%= @topic.title %>

+ +

<%= @topic.body %>

+ +<%= link_to "Back to topics", :action => "index" %> + +<% unless @topic.replies.empty? %> +

Replies

+
    + <% for reply in @topic.replies %> +
  1. <%= reply.body %>
  2. + <% end %> +
+<% end %> + +

Reply to this topic

+ +
" method="post"> + +

+ +

+ +

+ +

+
+ + + \ No newline at end of file -- cgit v1.2.3