<% diff[:added_post_ids].each do |post_id| %> <%= link_to post_id, post_path(post_id) %><%# %><%= link_to "»", pool_versions_path(search: { post_id: post_id }) %> <% end %> <% diff[:removed_post_ids].each do |post_id| %> <%= link_to post_id, post_path(post_id) %><%# %><%= link_to "»", pool_versions_path(search: { post_id: post_id }) %><%# %> <% end %>