Added routes, display seems to work so long as you remove the forms from the views.
[feedcatcher.git] / app / views / feed / show.html.erb
index 374ee872403ce14a7e8dee5dd9d8cf3f62e67839..a491835a6b4bdbcb9f5aff4798d7dc6a759d7c27 100644 (file)
@@ -1,4 +1,13 @@
-<h1>Contents of feed <%= params[:id] %></h1>
+<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>