I am using the following code to get the Item from the Rss feed but it only gives me the first item. How can I get all the items:
root.elements["channel/item"].each do |item|
titles << item.text
end
UPDATED:
titles = []
# go through the collection and prints the title
root.elements["channel/item"].each do |item|
titles << item.text
end
puts titles