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 -%>
@ -42,4 +42,4 @@
<% content_for :auto_discoveries do -%>
<%= auto_discovery_link_tag :rss, { :format => :rss } %>
<% end -%>
<% end -%>