[Rails] I can't PUT or DELETE JSON, where do I look?

2009-11-27 Thread AJ ONeal
I'm making a webservice with JSON going in both directions for all requests, but seem to have run into a catch 22. A) I try the request as /questions/1.json?_method=put but since the _method=put is not in the message body it doesn't count. B) I send the params as _method=put{ json: here } The

Re: [Rails] I can't PUT or DELETE JSON, where do I look?

2009-11-27 Thread Johan De Klerk
_method=put{ json: here } will never work. In a query string you need to assign it to something: eg. _method=putjson={ json: here } Johan On Sat, Nov 28, 2009 at 9:05 AM, AJ ONeal alvin.on...@gmail.com wrote: I'm making a webservice with JSON going in both directions for all requests, but