Still poking around with this and having no luck, but one thing I
noticed in the error message:
with {:method=>:get}
The book makes it explicit to use a post method of adding to cart,
making sure button_to was used instead of link_to:
<%= button_to "Add to Cart", :action => :add_to_cart, :id =>
product %>
(Side note: then a couple pages later, they tell you to link the image
up to the add_to_cart method using link_to - making no sense whatsoever
to restricting it to a button in the first place)
Is this happening because hacking the URL is a GET vs. a POST?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---