search for: feeditems

Displaying 8 results from an estimated 8 matches for "feeditems".

Did you mean: feeditem
2005 Dec 28
1
Help needed with ActiveRecord
I am having issues with RoR/database relationships I have 3 tables Feeds (List of feeds) FeedItems (List of items, feedsID) FeedView (list of views and their list of feedsID) I would like to be able to generate a view with the feeditems For example, if the view has 2 feeds --> CNN & MSNBC and they both have 15 feeds in the feeditems table I want to be able to generate a view with cnn...
2006 Jan 31
1
view vs controller - data from multiple tables.
...;t really matter for a simple example, but I plan to make a fairly complex app (not insane, but a few dozen views by the time it''s done), and I''d like to do it correctly from the beginning. :) Someone in IRC suggested, in the controller, def index @feeds = Feed.find(:all) @feeditems = FeedItem.find(:all) end But then, of course, you get the entire list (A, B, and C) for each feed.. so that''s not quite right. Any comments/suggestions appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Jan 19
0
Activerecord | Understanding associations
I have 3 tables feeditems{ id, feedname, timestamp } tags{ id, name, feeds_id } how do I retrive the last 10 feeditem entries and its tags? I know this is simple but am all confused. Any help is greatly appreciated. Thanks! Newbie! -- Posted via http://www.ruby-forum.com/.
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"
2006 Mar 20
3
can''t get my rss to validate with feedtools
I know that I''m doing something wrong, but I can''t figure out what. I''ve looked at every wiki and tutorial I can find on feedtools but I still can''t get my rss feed working. Here''s my code. feed = FeedTools::Feed.new feed.entries << FeedTools::FeedItem.new feed.entries[0].author.name = "Charlie Bowman" feed.entries[0].title =
2006 Apr 30
2
Rss feed items disappear using feedtools?
I have met a problem on Feedtools and felt very confused about it: The feed that I generated using feedtools can not be read correctedly by feedtools,while rss from other websites can be read. Still,the code for rss generating: def userrss @user = User.find_by_id(params[:id]) @articles = @user.articles(:all,:order => ''updated_at desc'',:limit => 15)
2006 Mar 20
7
error using feedtools
I performed a gem install feedtools, I then added these 2 lines to my environment.rb: require ''rubygems'' require ''feed_tools'' I then added this method in my controller: def rss @post = Post.most_recent feed = FeedTools::Feed.new feed.title = ''Recent Rambles'' feed.subtitle = ''random thoughts by me''
2006 May 13
6
Asking for help again about my thread debug
As http://www.ruby-forum.com/topic/65495 has shown,I have drawn into trouble about my thread debugging for some days,and need help to solve it urgently! This thread problem comes from the design requirements that my web application will get the rss feeds 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