<div data-role="navbar">
    <ul>
      <li><%= link_to 'Back', :back, "data-ajax" => "false" %></li>
        <% if current_user && current_user.verified? %>
        <li><%= link_to "Home", home_path,  "data-ajax" => "false"%></li>
        <li><%= link_to("Profile", edit_profile_path, "data-ajax" => "false") %></li>
        <li><%= link_to("Logout", logout_path, :method => :delete, "data-ajax" => "false") %></li>
        <% else %>
        <li><%= link_to("Login", login_path, "data-ajax" => "false") %></li>
        <%end%>
    </ul>
 </div>

<div data-role="navbar">
    <ul>
      <li><%= link_to 'Back', :back, "data-ajax" => "false" %></li>
        <% if current_user && current_user.verified? %>
        <li><%= link_to "Home", home_path,  "data-ajax" => "false"%></li>
        <li><%= link_to("Profile", edit_profile_path, "data-ajax" => "false") %></li>
        <li><%= button_to("Logout", logout_path, :method => :delete, "data-ajax" => "false") %></li>
        <% else %>
        <li><%= link_to("Login", login_path, "data-ajax" => "false") %></li>
        <%end%>
    </ul>
 </div>

Fix bug that caused logout to fail under some circumstances
Fix bug that caused logout to fail under some circumstances
