From 5765c2e43ce6141a32f8e96940ea56ad500a4257 Mon Sep 17 00:00:00 2001 From: Armando Fox Date: Thu, 7 Sep 2023 09:05:23 -0700 Subject: [PATCH] cleanup formatting in views for ttt game --- flipped-demos/ch03-saas/ttt/views/game.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flipped-demos/ch03-saas/ttt/views/game.erb b/flipped-demos/ch03-saas/ttt/views/game.erb index aa8be54..df07a71 100644 --- a/flipped-demos/ch03-saas/ttt/views/game.erb +++ b/flipped-demos/ch03-saas/ttt/views/game.erb @@ -7,13 +7,13 @@ <% row = col = 0 %> <% 0.upto(2) do |row| %> -
+
<% 0.upto(2) do |col| %> -
- <% square_num = row * 3 + col %> - <%= if (val = @game.board[square_num]).empty? then square_num else val end %> +
+
+ <% square_num = row * 3 + col %> + <%= if (val = @game.board[square_num]).empty? then square_num else val end %> +
<% end %>