X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Ffeed%2Fshow.html.erb;h=9c5180a91a41989e8db6d94ce346b5ba10ebb8d9;hb=87b29f4f401626c3b21df387cf7cd75677ea56cf;hp=374ee872403ce14a7e8dee5dd9d8cf3f62e67839;hpb=02c0b78c15c33baab16d70467a05e1a024d7d80d;p=feedcatcher.git diff --git a/app/views/feed/show.html.erb b/app/views/feed/show.html.erb index 374ee87..9c5180a 100644 --- a/app/views/feed/show.html.erb +++ b/app/views/feed/show.html.erb @@ -1,4 +1,13 @@ -

Contents of feed <%= params[:id] %>

+

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

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