<%= @beer.title -%>
<%
attributes = []
attributes << "ABV: #{abv(@beer)}" unless @beer.abv.to_s.empty?
attributes << "Original Gravity: #{@beer.original_gravity}" unless @beer.original_gravity.to_s.empty?
attributes << "Final Gravity: #{@beer.final_gravity}" unless @beer.final_gravity.to_s.empty?
unless attributes.empty?
-%>
Useful attributes
- <%= attributes.join('
- ') -%>
<% end -%>
<%= @page.html %>
<%= link_to 'Edit', edit_beer_path(@beer) %> |
<%= link_to 'Beers', beers_path %>