X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Ffeed%2Fshow.html.erb;h=2a2b9b1daaaad4094886073444761803d9270618;hb=68d23ac1cc9c0f64f5dff661c3c4fe36621948d6;hp=9c5180a91a41989e8db6d94ce346b5ba10ebb8d9;hpb=73ebfcfd8bdc389269ab4522a8cfc2486c32978e;p=feedcatcher.git diff --git a/app/views/feed/show.html.erb b/app/views/feed/show.html.erb index 9c5180a..2a2b9b1 100644 --- a/app/views/feed/show.html.erb +++ b/app/views/feed/show.html.erb @@ -1,13 +1,14 @@

Contents of feed <%= h params[:feed_name] %>

<%= link_to("List of all feeds", index_url) %>

-<% form_for :feed_item, :url => update_url(params[:feed_name]) do |form| %> -

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 %>

+<% form_tag :action => 'update' do %> +

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' %>

<% end %> +
<% for item in @feed_items %>
<%= h item.title %>