Class RssController
In: app/controllers/rss_controller.rb
Parent: ApplicationController

Methods

feed   parse_feed  

Public Instance methods

[Source]

    # File app/controllers/rss_controller.rb, line 14
14:   def feed(feed_url, maximum_number_of_items, title, details, details_url)
15:     kotoba_rss_feed = Kotoba_Rss::Feed.new
16:     result = kotoba_rss_feed.get(feed_url)
17:     return render( 
18:       :partial => '/rss/feed', 
19:       :layout => 'popup',
20:       :locals => { 
21:         :result => result, 
22:         :maximum_number_of_items => maximum_number_of_items, 
23:         :title => title,
24:         :details => details,
25:         :details_url => details_url
26:       }
27:     )
28:   end

[Source]

    # File app/controllers/rss_controller.rb, line 5
 5:   def parse_feed
 6:     feed_url                = params['rss_url']                      || 'http://word.wardosworld.com/?feed=rss2&cat=6'
 7:     maximum_number_of_items = params['maximum_number_of_items'].to_i || 5
 8:     title                   = params['title']                        || t('rss.rss_feed')
 9:     details                 = params['details']                      || t('rss.read_more')
10:     details_url             = params['details_url']                  || 'http://word.wardosworld.com/?cat=6'
11:     feed(feed_url, maximum_number_of_items, title, details, details_url)
12:   end

[Validate]