ITERATION F1: ADDING USERS posted by osagie uwaifo @ Sun, 25 May 2008...
Anders try restarting your application. If that does not work, create a dummy controller like the way the store controller was created. Access the dummy controller, then access the login controller....
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Wed, 21 May 2008...
I just wanted to say thanks Sam for your guidance. It worked just fine. I really don’t know were i got this line from :@items << product. Thanks a lot.
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Tue, 20 May 2008...
Thanks a lot. I will try the code above and let you know if it works.
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Tue, 20 May 2008...
It is still creating product object. And actually seems right to me. when the add product method is called, we are passing in a product object. The we add the product object to the @items...
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Tue, 20 May 2008...
This is my Cart classclass Cart attr_reader :items , :quantity# <whatis linkend="wtf.attr.accessor">attr_reader</whatis>TRUNCdef initialize @items = [] enddef add_product(product) end@items...
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Tue, 20 May 2008...
Thank you for your quick response. I will try that and see what happens.
View Article8.3 Iteration C2: A Smarter Cart posted by osagie uwaifo @ Tue, 20 May 2008...
Hi i can’t get passed this section. I have read and tried everything on the forums. I keep getting this error:NoMethodError in StoreController#add_to_cartundefined method `product’ for...
View Article