diff --git a/app/controllers/bingo_controller.rb b/app/controllers/bingo_controller.rb index 41f30a7..dadd5c6 100644 --- a/app/controllers/bingo_controller.rb +++ b/app/controllers/bingo_controller.rb @@ -29,7 +29,7 @@ def initialize(root = File.join('public', 'images', 'bingo')) @grid[action] ||= {} @title[action] ||= ['A', 'R', 'T', 'G', 'O' ] Dir.open(File.join(@root, action)).each do |f| - next if (f =~ /^blank.png$/) + next if (f =~ /^free_square.png$/) next unless (f =~ /..+\.png$/) @grid[action][f.gsub(/\.png$/, '')] = (f =~ /_(\d+)\.png/ ? $1.to_i : 1) end diff --git a/app/views/bingo/index.rhtml b/app/views/bingo/index.rhtml index 69a516d..ab4236c 100644 --- a/app/views/bingo/index.rhtml +++ b/app/views/bingo/index.rhtml @@ -7,7 +7,7 @@ <%=h cell.gsub(/_\d+$/, '').humanize %> <% count += 1 -%> <% if 17 == count -%> - free + free <% count += 1 -%> <% end -%> <% if 0 == count %5 -%>