<%= link_to_unless_current "Home", :controller => "items",
:action => "index" %> |
<%= link_to_unless_current "About Us",:controller => "site",
:action => "about" %> |
<%= link_to_unless_current "Contact Us",:controller => "site",
:action => "contact" %>
<%= link_to_unless_current "Cart", :controller => "cart",
:action => "index" %> |
<% unless session[:login] %>
<%= link_to_unless_current "Admin", :controller => "user",
:action => "admin_login" %>
<% else %>
<%= link_to_unless_current "Logout", :controller => "user",
:action => "logout" %>
<% end %>
<% if flash[:notice] -%>
<%= flash[:notice] %>
<% end -%>
<%= yield %>