rendered paste body#myprofile/show
<div>
<%= render :partial => 'clubs/news', :id => @fan.club, :template => 'news' %>
</div>
#clubscontroller
def news
@club = Club.find(params[:id])
@bbc_rss = RssParser.run(@club.bbc_rss)
@sky_rss = RssParser.run(@club.sky_rss)
@page_title = "Listing all news from " + @club.name.capitalize
end
clubs/news.rhtml
<h1><%= link_to @club.name.capitalize, :action => 'show', :id => @club %>'s Latest News</h1>
<h2>From bbc.co.uk</h2>
<% for bbc in @bbc_rss[:items][0..5] -%>
<%= link_to bbc[:title], bbc[:link] %><br>
<% end -%>
<hr>
<h2>From skysports.com</h2>
<% for sky in @sky_rss[:items][0..5] -%>
<%= link_to sky[:title], sky[:link] %><br>
<% end -%><br>
<%= link_to "back to club", :action => 'show', :id => @club %>