<%= link_to beer_path(beer) do %>
  <p>
    <%= beer.name %>
  </p>
<% end %>

<%= link_to beer_path(beer) do %>
  <p>
    <%= beer.name -%> <%= "(by you)" if beer.user_id == current_user.id %>
  </p>
<% end %>

Add message by beers of ones by current user
Add message by beers of ones by current user
