<% if @cart %>
<%= hidden_div_if(@cart.line_items.empty?, :id => "cart") do %>
<%= render @cart %>
<% end %>
<% end %>
Home
Questions
News
Contact
<% if session[:user_id] %>
<%= link_to 'Orders', orders_path %>
<%= link_to 'Products', products_path %>
<%= link_to 'Users', users_path %>
<%= button_to 'Logout', logout_path, :method => :delete %>
<% end %>