Displaying 10 results from an estimated 10 matches for "feed_items".
Did you mean:
feed_item
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)
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
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 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
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
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)
...
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.dra...
2006 Jul 10
10
Problem using Feedtools on my Rails project!
Hi
I''m trying to setup my app to use Feedtools amazing RSS powers, but it
fails miserably on the following line:
logger.debug("Description:#{FeedTools::Feed.open("http://rss.slashdot.org/Slashdot/slashdot").items.first.description}")
The stack trace says:
wrong number of arguments (0 for 1)