properly select beers
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@141 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
a66dab3222
commit
6d9a042f08
|
@ -14,7 +14,7 @@
|
||||||
<% for brewery in @breweries -%>
|
<% for brewery in @breweries -%>
|
||||||
<h4><%= show_brewery_link(brewery) -%></h4>
|
<h4><%= show_brewery_link(brewery) -%></h4>
|
||||||
<ul>
|
<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>
|
</ul>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Reference in New Issue