small medium large xlarge

Mustache_pragsmall
22 Jan 2008, 21:54
John Young (1 post)

Hi folks!

I’m working through the depot application, and I’ve run into the problem whereby the user_stories_test.rb, as given in the book, throws error:

NoMethodError: undefined method `[]’ for :put:Symbol

This is captured in the errata, but I’ll be jig-swiggered if I can find a workaround. Does anyone have any suggestions for getting this to work? Should I use a good ‘ol POST request instead of an XHR?

Thanks in advance for any help you can provide!

Generic-user-small
02 May 2008, 23:01
Fredrik W (3 posts)

xml_http_request :put, “/store/add_to_cart”, :id => ruby_book.id works just fine for me. Are you sure you’re passing it the correct parameters?

You must be logged in to comment