<h1>Welcome to BuildBlast</h1>
<p>This game is in pretty heavy development. This website is more fragile than the 1930's economy in America.<br><br>
<a href="http://play.buildblast.com">PLAY!</a></p>

<h1>Servers!</h1>
<% if user_signed_in? %>
  <%= form_tag("api/servers", method: "create") do %>
    <%= label_tag("server_name", "Server name:") %>
    <%= text_field(:server, :name) %>
    <%= submit_tag("Create Server") %>
  <% end %>
<% end %>
<br>
<% @servers.each do |id, server| %>
  <div>
    <a href='<%="https://server" + (server["PortOffset"] + 10000).to_s + ".buildblast.com/"%>'>
        <%=server["Name"]%>
    </a>
    <% if server["CreatorId"] == current_user.id %>
      <%= form_tag("api/servers/" + id.to_s, method: "delete") do %>
        <%= submit_tag("Delete server") %>
      <% end %>
    <% end %>
  </div>
<% end %>

<h1>Welcome to BuildBlast</h1>
<p>This game is in pretty heavy development. This website is more fragile than the 1930's economy in America.<br><br>
<a href="http://play.buildblast.com">PLAY!</a></p>

<h1>Servers!</h1>
<% if user_signed_in? %>
  <%= form_tag("api/servers", method: "create") do %>
    <%= label_tag("server_name", "Server name:") %>
    <%= text_field(:server, :name) %>
    <%= submit_tag("Create Server") %>
  <% end %>
<% end %>
<br>
<% @servers.each do |id, server| %>
  <div>
    <a href='<%="https://server" + (server["PortOffset"] + 10000).to_s + ".buildblast.com/"%>'>
        <%=server["Name"]%>
    </a>
    <% if current_user != nil && server["CreatorId"] == current_user.id %>
      <%= form_tag("api/servers/" + id.to_s, method: "delete") do %>
        <%= submit_tag("Delete server") %>
      <% end %>
    <% end %>
  </div>
<% end %>

Fix an error that occured while trying to access the home page while not signed into a user
Fix an error that occured while trying to access the home page while not signed into a user
