properly select beers

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@141 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-05 04:10:04 +00:00
parent a66dab3222
commit 6d9a042f08
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
<% for brewery in @breweries -%>
<h4><%= show_brewery_link(brewery) -%></h4>
<ul>
<% for experience in @experiences -%><li><span style="float: right"><%= experience_rating(experience) -%></span> <%= show_beer_link(experience.beer) -%></li><% end %>
<% for experience in @experiences.select { |e| e.brewery_id == brewery.id } -%><li><span style="float: right"><%= experience_rating(experience) -%></span> <%= show_beer_link(experience.beer) -%></li><% end %>
</ul>
<% end -%>
<% end -%>