no i can’t. it doesn’t seem to see the id of highlighted.
I know
<% if product.groceries.id == @item.groceries_id %>
is producing the correct code cause i am debugging now and just using
def add_to_cart
@sguser = Sguser.find(params[:ad])
@lineprice = SglineItem.find(:all, :conditions => “sguser_id =#{params[:ad]}”)
@item = SglineItem.new
@item.sguser_id= params[:ad]
@item.groceries_id=params[:bd]
@item.save!
respond_to do |format|
format.js
end
end
the old product that is added flashes while the new one just stays the same. <tr id="highlighted"> does not exist for both the old and the new product which i find is quite odd. what on earth is wrong am i suppose to see <tr id="highlighted"> on the old product ?(firing up depot to check it out)