<% 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 %>
<% else -%>

No beers, yet

<% end -%> <% content_for :sidebar do -%> <%= link_to "New Beer", new_beer_path, { :title => 'Create a new beer' } -%>
<%= render :partial => 'shared/tag_cloud' %> <% end -%>