Last active
August 29, 2015 13:56
-
-
Save stuartbates/8821194 to your computer and use it in GitHub Desktop.
We can't nest HTML forms so instead we can use AJAX to simulate the POST request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to 'Add to wishlist', spree.wished_product_path({:id => variant.id}), :remote => true, :method => :put |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment