Skip to content

Instantly share code, notes, and snippets.

@mjansen401
Created May 9, 2011 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjansen401/963639 to your computer and use it in GitHub Desktop.
Save mjansen401/963639 to your computer and use it in GitHub Desktop.
_board.html.erb
<table class="board">
<tr>
<%= render :partial => 'games/square', :locals => {:location => '0'}%>
<%= render :partial => 'games/square', :locals => {:location => '1'}%>
<%= render :partial => 'games/square', :locals => {:location => '2'}%>
</tr>
<tr>
<%= render :partial => 'games/square', :locals => {:location => '3'}%>
<%= render :partial => 'games/square', :locals => {:location => '4'}%>
<%= render :partial => 'games/square', :locals => {:location => '5'}%>
</tr>
<tr>
<%= render :partial => 'games/square', :locals => {:location => '6'}%>
<%= render :partial => 'games/square', :locals => {:location => '7'}%>
<%= render :partial => 'games/square', :locals => {:location => '8'}%>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment