<% post.becomes(ChiliSocial::Post).tap do |post| %> <%= link_to 'Like!', chili_social.likes_path(like: {post_id: post}), method: :post %> <%= pluralize post.likes.size, 'like' %> <%= post.well_liked? ? 'This post is well liked!' : 'This post is boring...' %> <% end %>