Ruby on Rails
Tuesday, October 23, 2018
oh, the other thing I couldn't figure out is how to get the :qty from the form input field. I need to check this value compare it to the remaining as well.
Thanks,
Joe
On Saturday, October 20, 2018 at 2:58:25 PM UTC-4, Greg Navis wrote:
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.BestGreg
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/9326f448-1185-4afa-96c3-e475aa527751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment