On 12 Apr., 22:02, Nick Hoyle <rails-mailing-l...@andreas-s.net>
wrote:
> Nick Hoyle wrote:
> > hi thanks for the reply, was much needed.
>
> > I knew what i was trying to do which was like you say call each of the
> > items in the array i just wasnt sure how to do it, and attempted a
> > similar type of loop but had no luck.
>
> > I will look into this and see if i can achieve what i want
>
> > Thanks alot
>
> > nick
>
> just another quick question
>
> how would i able to output each parsed feed from the array @feeds[] in a
> view?

You would do something like this:

<ul id="feeds">
  <%- @feeds.each do |feed| -%>
    <li><%= feed.channel.title %></li>
  <%- end -%>
</ul>

Voila, a list of feed titles. :)

--
Best regards,
David Knorr
http://twitter.com/rubyguy
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to