This is the index page for orders.

<% if !@cart.blank? %>
  <p><%= @cart %></p>
<% else %>
  Can't see cart contents :{
  <%= @cart %>
<% end %>

<!-- This code isn't final.  I need to add logic for an order having multiple items, name, etc -->
<% if  !current_user.orders.blank? %>
  <% current_user.orders.each do |order| %>
  <!-- Here you should apply code that will Display the name of the order, clickable link for order details etc -->
    order.user_id
  <% end %>
<% end %>
This is the index page for orders.

<% current_user %>
<% if !@current_user.shopping_cart.blank? %>
  <p><%= @current_user.shopping_cart.each do |item| %></p>
    <%= item %>
  <% end %>
<% else %>
  Can't see cart contents :{

<% end %>

<!-- This code isn't final.  I need to add logic for an order having multiple items, name, etc -->
<% if  !current_user.orders.blank? %>
  <% current_user.orders.each do |order| %>
  <!-- Here you should apply code that will Display the name of the order, clickable link for order details etc -->
    order.user_id
  <% end %>
<% end %>
Update logic for seeing content of your own cart
Update logic for seeing content of your own cart
