Fixed forms to allow for exernal driving of the site
[feedcatcher.git] / app / views / feed / show.html.erb
index 9c5180a91a41989e8db6d94ce346b5ba10ebb8d9..2a2b9b1daaaad4094886073444761803d9270618 100644 (file)
@@ -1,13 +1,14 @@
 <h1>Contents of feed <%= h params[:feed_name] %></h1>
 <p><%= link_to("List of all feeds", index_url) %></p>
 
-<% form_for :feed_item, :url => update_url(params[:feed_name]) do |form| %>
-  <p>Set feed <%= form.text_field :feed_name, :size => 20, :value => h(params[:feed_name]) %>
-    to include <%= form.text_field :title, :size => 30 %>
-    containing  <%= form.text_field :description, :size => 50 %>
-    <%= submit_tag %></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>