<% unless @breweries.empty? -%> <% for brewery in @breweries %> <% end %>
Title
<%= brewery.title -%> <%= link_to 'Show', brewery_path(brewery.page.title_for_url) %> <%= link_to 'Edit', edit_brewery_path(brewery.page.title_for_url) %> <%= link_to 'Destroy', brewery_path(brewery.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %>
<% else -%>

No breweries, yet.

<% end -%> <% content_for :sidebar do -%> <%= link_to 'New brewery', new_brewery_path -%>
<% end -%>