<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller.controller_name.to_s.titlecase %>: <%= controller.action_name.to_s.titlecase %></title>
  <%= javascript_include_tag :defaults %>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag "forms" %>
  <%= stylesheet_link_tag "autocomplete" %>
</head>
<body>

<% if current_user %>
  <%= link_to "#{current_user.name}", user_path(current_user)  %> |
  <%= link_to "logout", logout_path, :method => :delete %>
<% else %>
  <%= link_to "login", login_path %> |
  <%= link_to "signup", signup_path %>
<% end %>

<h1><%= @content_title %></h1>

<p style="color: green"><%= flash[:notice] %></p>

<%= yield %>

</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller.controller_name.to_s.titlecase %>: <%= controller.action_name.to_s.titlecase %></title>
  <%= javascript_include_tag :defaults %>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag "forms" %>
  <%= stylesheet_link_tag "autocomplete" %>
</head>
<body>

<%= render "/users/user_bar" %>

<h1><%= @content_title %></h1>

<p style="color: green"><%= flash[:notice] %></p>

<%= yield %>

</body>
</html>

Use user_bar instead of hacked together global links
Use user_bar instead of hacked together global links
