require 'rss/2.0' require 'open-uri' class FeedController < ApplicationController def index feed_url = 'http://kane.faster.sk/feed' output = "

My RSS Reader

" open(feed_url) do |http| response = http.read result = RSS::Parser.parse(response, false) @favicon=result.channel.image output += "Feed Title: #{result.channel.title}
" result.items.each_with_index do |item, i| output += "#{i+1}. #{item.title}
" end end render_text output end end