Need help trying to debug - included screenshot

I have attached a screen shot of the error I am running into.

I am on page 138 of the Agile Web D. with Rails book by
Pragmatic Programmers.

I am developing the depot store, and I ran into an error, with
hidden_div_if.

When I remove that block of code, things to work fine, besides the fact
the cart does not display on the site, but everything else functions
correctly, so it is something with that line 20 of code.

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

Look at the screen shot, any help is much appreciated.

Thanks,
Brad

2007/8/23, Brad K. [email protected]:

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

Look at the screen shot, any help is much appreciated.

It seems to me that you forgot to add “@cart = find_cart” in the action.

Thomas W. wrote:

2007/8/23, Brad K. [email protected]:

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

Look at the screen shot, any help is much appreciated.

It seems to me that you forgot to add “@cart = find_cart” in the action.

thanks, i’ll try that tonight and reply whether or not that was the
problem.

thanks again!