search for: feeditem

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

Did you mean: feed_item
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.
...tart with B Books Bottles Bears Things that start with C Cats Cars Cocoons I figured out how to do this in a loop in the view, i.e. Controller: def index @feeds = Feed.find(:all) end View: <% for feed in @feeds %> <h3><%=h feed.name %></h3> <% for feeditem in feed.feed_items %> <%=h feeditem.name %> <% end # end feeditem loop %> <% end # end @feeds loop %> Is this bad style? Should I be pulling this data somehow in the controller instead? I know it doesn''t really matter for a simple example, but I plan to make...
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
...ontent-Type"] = "application/xml; charset=utf-8" @feed = FeedTools::Feed.new @feed.title = "#{@user.login}" @feed.author = "#{@user.login}" @feed.link = "http://localhost:3000" @articles.each do|@article| @feed_item = FeedTools::FeedItem.new @feed_item.link = "http://localhost:3000/articles/view/#{@article.id}" @feed_item.content = render_to_string(:layout => false, :template => "articles/view.rhtml") @feed.entries << @feed_item end end end and @feed.build_xml(''...
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 = @post.title feed.entries[0].link = "http://server:3000/pragmatic/" feed.entries[0].content = @post.post # Assumes this is inside a .rxml file feed.entries[0].build_xml("rss", 2.0,xml) Here...
2006 Apr 30
2
Rss feed items disappear using feedtools?
...ot; @feed = FeedTools::Feed.new @feed.title = "#{@user.login}" @feed.author = "#{@user.login }" @feed.link = "http://localhost:3000" @feed.description = "rss for #{@user.login}" @articles.each do|@article| @feed_item = FeedTools::FeedItem.new @feed_item.title = "title" @feed_item.link = " http://localhost:3000/" @feed_item.description = render_to_string(:layout => false, :template => "feeds/view.rhtml") @feed.entries << @feed_item end end and @feed.build_xml(...
2006 Mar 20
7
error using feedtools
...ecent feed = FeedTools::Feed.new feed.title = ''Recent Rambles'' feed.subtitle = ''random thoughts by me'' feed.author.name = "Charlie Bowman" feed.link = "http://www.recentrambles.com/rss" feed.entries << FeedTools::FeedItem.new feed.entries[0].title = @post.title feed.entries[0].link = "http://www.recentrambles.com/pragmatic/view/#{@post.id}" feed.entries[0].content = @post.post # Assumes this is inside a .rxml file feed.build_xml("atom", 1.0, xml) end This causes this err...
2006 May 13
6
Asking for help again about my thread debug
...articles(:all,:order => ''updated_at desc'') @feed = FeedTools::Feed.new @feed.title = "#{@user.login}" @feed.author = "#{@user.login}" @feed.link = "http://localhost:3000" @articles.each do|@article| @feed_item = FeedTools::FeedItem.new @feed_item.link = "http://localhost:3000/articles/view/#{@article.id}" @feed_item.content = "#{@article.body}" @feed.entries << @feed_item end end end The above code can not work because of the thread problem:a controller will not return until...