<% if current_subdomain %>
  <div id="sidebar">
    <div id="sidebar-glow"></div>
    <div id="header">
    <div id="title">
      <div class="top"></div>
      <div class="content">
        <h1><%= link_to current_subdomain.name, dashboard_path %></h1>
        <span class="tagline">Mine Gems&trade;</span>
      </div>
      <div class="bottom"></div>
    </div>
  </div>

  <div id="mylinks" class="list">
    <ul>
      <li class="nolabel"><%= link_to content_tag(:strong, "Dashboard"), dashboard_path %></li>
      <li class="nolabel"><%= link_to content_tag(:strong, "Gems"), gems_path %></li>
      <li class="nolabel"><%= link_to content_tag(:strong, "Account"), account_path %></li>
    </ul>
  </div>
</div>
<% end %>
<% if defined?(:current_subdomain) && current_subdomain %>
  <div id="sidebar">
    <div id="sidebar-glow"></div>
    <div id="header">
    <div id="title">
      <div class="top"></div>
      <div class="content">
        <h1><%= link_to current_subdomain.name, dashboard_path %></h1>
        <span class="tagline">Mine Gems&trade;</span>
      </div>
      <div class="bottom"></div>
    </div>
  </div>

  <div id="mylinks" class="list">
    <ul>
      <li class="nolabel"><%= link_to content_tag(:strong, "Dashboard"), dashboard_path %></li>
      <li class="nolabel"><%= link_to content_tag(:strong, "Gems"), gems_path %></li>
      <li class="nolabel"><%= link_to content_tag(:strong, "Account"), account_path %></li>
    </ul>
  </div>
</div>
<% end %>
Fix error undefined local variable or method `current_subdomain'
Fix error undefined local variable or method `current_subdomain'

This is a temporary fix, I suggest the product layout to be different than the promotional site layout.