Something wrong with the div

 <div id= "cart"

line 16----> <% if @cart.items.empty? %>
style=“display: none”
<% end %>

<%= hidden_div_if(@cart.items.empty?, :id => “cart”) %>

Whenever i press on checkout it says…You have a nil object when you
didn’t expect it!
The error occured while evaluating nil.items,

Extracted source (around line #16):

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs