Files
nairobi/app/views/welcome/_feeds.html.erb
rgarcia 0e097973cc Add widget feeds to homepage
Note there is some funkiness going on with class loadings
Had to create a `feed` and `widget_feed` table even though in this
first version the Widget::Feed includes only uses ActiveModel instead
of ActiveRecord, otherwise some specs failed

We’ll figure it out and clean up 😌
2018-05-28 18:17:26 +02:00

16 lines
281 B
Plaintext

<h1>Feeds</h1>
<% @feeds.each do |feed| %>
<div>
<strong>Most active <%= feed.kind %></strong>
</div>
<% feed.items.each do |item| %>
<div class="<%= item.class.to_s.parameterize('_') %>">
<%= item.title %>
</div>
<br/>
<% end %>
<% end %>