defcreate... 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: '/'end
The above will POST, and get redirected back to the original page while fetching only the header to update.