Updating shopping cart
<form action='/add_to_cart?bzq=data.header.cart' method='POST' data-bz-remote={true}>def create
... add to cart logic here...
# This helper will retain the `bzq` param when redirecting, which allows the
# partial rendering of the `show` page.
redirect_back_with_bzq fallback_url: '/'
endLast updated