@feed.items[0..4].each do |item|
...
end
That would be one way to serve up only 5 items.
--
Building an e-commerce site with Rails?
http://www.agilewebdevelopment.com/rails-ecommerce
On Aug 29, 2006, at 2:25 PM, Kevin wrote:
>
> I''m currently displaying an RSS feed on my site using FeedTools.
> However, I''d like to limit the number of items that are displayed
for
> the feed. How can I go about doing this? Thanks.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---