properly select beers
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@142 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
6d9a042f08
commit
9b58dc0969
|
@ -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 -%>
|
||||
|
|
Reference in New Issue