Skip to content

Instantly share code, notes, and snippets.

@mjansen401
Created May 9, 2011 23:36
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/963645 to your computer and use it in GitHub Desktop.
Save mjansen401/963645 to your computer and use it in GitHub Desktop.
_square.html.erb
<td class="square">
<% if @ttt.square_empty?(location.to_i) && @ttt.in_progress? %>
<%= submit_tag(location, :class => "square", :name => "location") %>
<% elsif !@ttt.square_empty?(location.to_i) %>
<%= @ttt.get_square_value(location.to_i) %>
<% elsif !(@ttt.in_progress?) %>
<% end%>
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment