[LRUG] Funny gotcha with blocks in partials.

Andrew Stewart boss at airbladesoftware.com
Mon Jun 22 09:34:26 PDT 2009


On 22 Jun 2009, at 17:16, Andrew Stewart wrote:
> So I imagine (though haven't tested) this would work:
>
> <% capture do %>
>  <% array_to_list(@flash_games, :class => "flash_games_grid") do | 
> game, array| %>
>    <a href="<%= game_path(:id => game.id) %>"><img src="<%=  
> game.image_url(:grid) %>" alt="A Game" width="128" height="128" /></a>
>  <% end %>
> <% end %>

I've now tested this.  It doesn't work.  Sorry!

Cheers,
Andy Stewart



More information about the Chat mailing list