I have the following code in my show.html.erb file, it calls the right method (or path).
I am unsure how to pass variables from my product show.html.etb to my actual method... <%= button_to 'Add to Cart', add_to_cart_path, method: :post %> I need to pass the product id, and possibly qty. Thanks, Joe -- 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+unsubscr...@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/fc5ba368-9ad8-4572-8f8c-af6e761127cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.