On Nov 27, 4:24 pm, Joe Smith <[EMAIL PROTECTED]>
wrote:
> Here's what I now have, not sure where to go from here:
>
> NameError in Shoppingcart#my_shopping_cart
>
> Showing app/views/shoppingcart/my_shopping_cart.rhtml where line #24
> raised:
>
> undefined local variable or method `shopping_cart_item' for
> Shopping_cart:Class
> Extracted source (around line #24):
>
> 21:   <td valign="top" width="50%"></b>Traded items: </b><br>
> 22:   <table>
> 23:   <% if @my_cart
> 24:     for shopping_cart_item in @my_cart.shopping_cart_items %>
> 25:     <tr>
> 26:       <t
> --

What does your Shopping_cart class look like?
How is shopping_cart_items defined?


--
Daniel Bush
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to