Added routes, display seems to work so long as you remove the forms from the views.
[feedcatcher.git] / app / views / feed / show.html.erb
diff --git a/app/views/feed/show.html.erb b/app/views/feed/show.html.erb
new file mode 100644 (file)
index 0000000..a491835
--- /dev/null
@@ -0,0 +1,16 @@
+<h1>Contents of feed <%= h params[:feed_name] %></h1>
+<p><%= link_to("List of all feeds", index_path) %></p>
+
+<% form_tag :action => 'update' do %>
+  <p>Set feed <%= text_field_tag :feed_name, h(params[:feed_name]), :size => 20 %>
+    to include <%= text_field_tag :title, '', :size => 30 %>
+    containing  <%= text_field_tag :description, '', :size => 50 %>
+    <%= submit_tag 'Update' %></p>
+<% end %>
+
+<dl>
+  <% for item in @feed_items %>
+    <dt><%= h item.title %></dt>
+    <dd><em><%= h item.description %></em></dd>
+  <% end %>
+</dl>