Skip to main content

Join GoRails to continue learning

Subscribe to GoRails to get access to this episode and all other pro episodes, and access to our private Slack community of Ruby and Rails devs.

Subscribe to watch

Login to your account

Common Features in Rails Apps:

Activity Feed From Scratch


Episode 70 · July 3, 2015

Learn how to build an activity feed from scratch and how to manage lots of flexible partials



<% @events.each do |event| %>
  <% if lookup_context.template_exists?(event.action, "events/activities", true) %>
    <%= render partial: "events/activities/#{event.action}", locals: {event: event} %>
  <% end %>
<% end %>

Earn a free month

Subscribe or login to view the transcript for this episode.


Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.