search for: cart_item_

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

Did you mean: cart_item
2006 Jan 10
5
using dynamic element ids with visual_effect
...g the div, it also highlights the most recently added link item. Right now, we do it with: <script language="JavaScript"> function flash_cart(request) { var id = request.getResponseHeader(''X-Item-Id''); new Effect.Highlight(''cart_item_'' + id, { startcolor: "#66bb66", endcolor: "#114411" }); } </script> <%= link_to_remote ''Add to Cart'', :url => {:action => ''add_to_cart&...
2007 Jun 06
0
uninitialized constant Cart::CartItem
...am following a tutorial and get thar error creating a cart, and can''t figure it out, uninitialized constant Cart::CartItem Extracted source (around line #8): 5: <h3>Your Shopping Cart</h3> 6: 7: <ul> 8: <% for item in @cart.cart_items %> 9: <li id="cart_item_<%= item.book.id %>"> 10: <%= render :partial => "cart/item", :object => item %> 11: </li> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Go...