Displaying 2 results from an estimated 2 matches for "_cart_item".
Did you mean:
cart_item
2006 Jun 23
3
Help Analyzing The Log...(first time newbie)
...selecting from the DB or does it just say it
executed it?
Rendering within layouts/store
Rendering store/index
/^ gonna guess this rendered ok.
[4;36;1mProduct Columns (0.010000) [0;1mSHOW FIELDS FROM
products
/^ still dont know what this ESC means - the square with the [0
Rendered store/_cart_item (0.00000)
Rendered store/_cart (0.01000)
I''m not even sure if it made an AJAX request. and/or even got a
responce.
May I please get a ''daRubi deCoder'' on this?
Thanks a micro billion.
Dominic
--
Posted via http://www.ruby-forum.com/.
2006 Jul 03
0
Page 129 of Agile Web Dev on Rails (or pg141 of pdf!)
...begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid product #{params[:id]}")
redirect_to_index("Invalid product")
else
@cart = find_cart
@current_item = @cart.add_product(@product)
end
end
Code in _cart_item.rhtml:
<% if cart_item == @current_item %>
<tr id="current_item">
<% else %>
<tr>
<% end %>
<td><%= cart_item.quantity %>×</td>
<td><%= h(cart_item.title) %></td>
<td class="item-price">&...