X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Ffeed%2Fshow.html.erb;h=a491835a6b4bdbcb9f5aff4798d7dc6a759d7c27;hb=0c831f9107670526c653c82f182b0b6983f49c31;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..a491835 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_path) %>

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