diff --git a/app/views/static_pages/not_allowed.html.erb b/app/views/static_pages/not_allowed.html.erb
index 2cc6859..649cf1e 100644
--- a/app/views/static_pages/not_allowed.html.erb
+++ b/app/views/static_pages/not_allowed.html.erb
@@ -1,4 +1,4 @@
-<% Rails.env.production? %>
+<% if Rails.env.production? %>
<% end %>
You do not have permissions to go there.
diff --git a/app/views/tournaments/bracket.html.erb b/app/views/tournaments/bracket.html.erb
index 90d537d..43d6433 100644
--- a/app/views/tournaments/bracket.html.erb
+++ b/app/views/tournaments/bracket.html.erb
@@ -1,4 +1,4 @@
-<% Rails.env.production? %>
+<% if Rails.env.production? %>
<% end %>
<% cache ["brackets", @weight] do %>
diff --git a/app/views/tournaments/no_matches.html.erb b/app/views/tournaments/no_matches.html.erb
index 0f35252..8b6a0a3 100644
--- a/app/views/tournaments/no_matches.html.erb
+++ b/app/views/tournaments/no_matches.html.erb
@@ -1,4 +1,4 @@
-<% Rails.env.production? %>
+<% if Rails.env.production? %>
<% end %>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>