search for: warenkorb

Displaying 2 results from an estimated 2 matches for "warenkorb".

Did you mean: warenform
2006 Sep 03
2
Undefined method "xxx" of a model when calling a helper
...session[:cart] ||= Cart.new end def empty_cart find_cart.empty! end def cart_empty? return true if find_cart.empty? end end Then I want to display a partial form within the layout application.rhtml but only if the cart is not empty: <%= render(:partial => ''warenkorb/warenkorb'', :locals => {:cart => find_cart}) unless cart_empty? %> But this displays me the following error: undefined method `empty?'' for #<Cart:0x230020c @line_items=[]> Where does this error come from? I just don''t get it, the Cart object is instant...
2008 Oct 28
5
Page does not seem to be reloaded on prod server
Hi all I''ve coded a small shop that works well on my dev machine (OSX 10.5). But look at the following page: http://shop.incense.ch/compact_discs/1 When clicking "Reservieren", the page is forwarded to a new page, where the product is added to the shopping cart, and a flash notice is prepare. Then the page is redirected back to the shop page. On my dev machine this works