I need to do something like shown below; add a jquery effect depending on the value of an instance object in rails
("$('#cart').show(2000);") if @cart.total_items ==1
I need to do something like shown below; add a jquery effect depending on the value of an instance object in rails
("$('#cart').show(2000);") if @cart.total_items ==1