properly select beers

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

View File

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