Ruby on Rails Saturday, October 20, 2018

You can pre-render the modal with a confirmation form. When clicking "Add to cart" you can update the form with the ID of the product being added and show the modal. When the user submits the form it'll send the right product ID to the server.

Best
Greg

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt9KNafGFnyWwq%3D-C5DN0cMBopOOzeXR3WZJYz8tap66ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment