Re: undefined method `items'' for nil:NilClass

Evanoshki Brataslavainskinski
Wed, 20 Oct 2010 09:04:35 -0000

Very good suggestion Michael.. Thanks for your help.. I have deviated a
little from the book, since there are more functions that I need to
incorporate.. I tried putting it in the index def in the store
controller, but no luck..  Tried putting the @cart.find_cart in the
controller but no luck..  I believe the add_to_cart.js_rjs renders the
cart partial.  Don''t no why the index would render or look for it..

The add_to_cart function in the store controller is called by a button
on the page ''showmodels''.  In the handbook the @cart.find_item
is
located in the add_to_cart function

--
Posted via http://www.ruby-forum.com/.

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org