search for: feed_item

Displaying 10 results from an estimated 10 matches for "feed_item".

2006 Apr 30
2
Rss feed items disappear using feedtools?
...n/xml; charset=utf-8" @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 a...
2013 Mar 02
3
Following railstutorial.org tutorial, how to make the microposts be seen by all?
I am a new learner of Ruby on Rails. I followed through the railstutorial.org tutorial and I''m trying to learn off the sample demo app where you can to make microposts and only the people who are "following" you can see them. If I wanted to make it so every user can see microposts as an additional functionality, what are the steps to do that? -- Posted via
2006 Jan 31
1
view vs controller - data from multiple tables.
Hi all, please pardon my question if it seems silly.. I''m trying pretty hard to learn though. :) I have 2 tables: feeds (has_many feed_items) feed_items (belongs_to feed) Let''s say Feeds has 3 feed.names: "Things that Start with A", "Things that start with B", "Things that start with C". I want to print out, on one page, something like the following: Things that start with A Apples Angels...
2006 Apr 29
3
Feedtools question
...;) @headers["Content-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 @fee...
2006 Jun 14
1
simple-rss caching
The index page of my rails app grabs an rss feed from a neighboring news site. Unfortunately, the process of grabbing that feed seems to be slowing down the initial load time of my site to the point where it takes about 10-12 seconds to respond and render. I''d like to speed that up somehow (for 8-10 seconds it looks like my server is not responding at all..) Any suggestions? I
2006 May 13
6
Asking for help again about my thread debug
...@articles = @user.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...
2008 Apr 22
2
How to convert time from rss feed to another format ?
Hi, I need to parse the rss feed and use the pubDate field to generate a field in a xml file to use as an input to simile timeline. RSS returns the pubDate as : Sun Feb 24 06:33:32 UTC 2008 But I need it as a string : "Feb 24 2008 06:33:32 PST" When I do : ... @dt=feed_item.time @dt=@dt.to_date word_date=''%b %d %Y %H:%M:%S %z'' puts @dt.strftime(word_date) ... Then I am getting : Feb 24 2008 00:00:00 +0000 what am I doing wrong? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this m...
2010 Jul 13
1
NoMethodError in UsersController#show
...%> <%= link_to "Sign Up", new_user_path %></p> <% end %> </div> </fieldset> Here are the relevant controllers and models: Users_Controller: def show #@user = User.find(params[:id]) @user = User.find_by_login(params[:login]) #@feed_items = @user.feed @feed_items = @user.feed end Users Model: def feed #Post.all(:conditions => ["user_id = ?", id]) Post.from_users_subscribed_by(self) end Post Model (using SQLite3) : named_scope :from_users_subscribed_by, lambda { |user| subscribed_by(user) } private...
2011 Nov 12
4
No route matches [GET] "/microposts/304"
...tionController before_filter :authenticate, :only => [:create, :destroy] before_filter :authorized_user, :only => :destroy def create @micropost = current_user.microposts.build(params[:micropost]) if @micropost.save flash[:success] = "Micropost created!" redirect_to root_path else @feed_items = [] render ''pages/home'' end end def destroy @micropost.destroy redirect_back_or root_path end private def authorized_user @micropost = current_user.microposts.find(params[:id]) rescue redirect_to root_path end end and finally, the route is.. SampleApp::Application.routes.dr...
2006 Jul 10
10
Problem using Feedtools on my Rails project!
.../gems/1.8/gems/feedtools-0.2.25/lib/feed_tools/helpers/html_helper.rb:300:in `sanitize_html'' /usr/local/lib/ruby/gems/1.8/gems/feedtools-0.2.25/lib/feed_tools/helpers/html_helper.rb:564:in `process_text_construct'' /usr/local/lib/ruby/gems/1.8/gems/feedtools-0.2.25/lib/feed_tools/feed_item.rb:328:in `description'' #{RAILS_ROOT}/app/controllers/test_controller.rb:4:in `index'' /usr/local/bin/mongrel_rails:18 I''ve put the ''require ''feed_tools'' line in my config/environment.rb BUT the most amazing thing is that I can run script/con...