The Beers

<% unless @beers.empty? -%> <% for beer in @beers %> <% end %>
Beer
<%= link_to beer.title, beer_path(beer.page.title_for_url) %> <%= link_to 'Edit', edit_beer_path(beer.page.title_for_url) %> <%= link_to 'Destroy', beer_path(beer.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %>
<% end -%>