Displaying 2 results from an estimated 2 matches for "feedscontroller".
Did you mean:
feed_controller
2006 Apr 29
3
Feedtools question
I use feedtools to generate the feeds and read them,and now they can not
work well:
This is the code for feed generating:
class FeedsController < ApplicationController
def userrss
@user = User.find_by_id(params[:id])
@articles = @user.articles(:all,:order => ''updated_at desc'')
@headers["Content-Type"] = "application/xml; charset=utf-8"
@feed = FeedTools::Feed.new
@feed.title...
2006 May 13
6
Asking for help again about my thread debug
...read which are generated by the web
application itself.
http://www.ruby-forum.com/topic/63984 has shown my code,and the key code
is the following:
@feed =
FeedTools::Feed.open("http://localhost:3000/feeds/userrss/#{params[:id]}")
userrss is the controller to generate rss feeds:
class FeedsController < ApplicationController
def userrss
@user = User.find_by_id(params[:id])
@articles = @user.articles(:all,:order => ''updated_at desc'')
@feed = FeedTools::Feed.new
@feed.title = "#{@user.login}"
@feed.author = "#{@user.login}"
@fee...