Ruby on Rails Saturday, February 4, 2017
button_to generates a form with a button. I'm not sure there's a way to add custom hidden fields to the form. One way around the problem would be to create the form manually, add the hidden input (with product ID), a number input with quantity and the submit button.--
Would this work for you?
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt-zgzJLQxy5eZ%3D8dcNhh-GWsLpK%2BKbX2kkbFq-znm_S-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Posted by Ruby on Rails at 12:13 AM