app/models/feed.rb
# Fetches RSS feed and returns back xml
Fetches RSS feed and returns back xml
Fetches RSS feed and returns back xml
def fetch_feed
    rss = ""
    begin
      puts self.url
      f = open(self.url, 'r')
      rss = f.read()
      f.close
    rescue Exception => e
      puts e.message
      puts "Feed::fetch_feed :: Error in opening feed"
    end
    return rss
  end
def fetch_feed rss = "" begin puts self . url f = open ( self . url , 'r' ) rss = f . read ( ) f . close rescue Exception => e puts e . message puts "Feed::fetch_feed :: Error in opening feed" end return rss end
Fetches RSS feed and returns back xml
Fetches RSS feed and returns back xml