I’m studying rails with version 2.3.5, but I got a problem just now.
I wrote code like:
and I write that method like this.
@cart = find_cart
remove_item = params[:id]
unfortunately i found that remove_item isn’t my CardItem class but a
String. how could this happen? and how could i get cart_item in my
remove_from_cart method by rewritng my code?