You are running into this because of a bug/misfeature. See this lighthouse ticket: https://rails.lighthouseapp.com/projects/8994/tickets/2289-_methodput-ignored-for-xhr-and-xml-requests
Apparently you can set an HTTP_X_HTTP_METHOD_OVERRIDE header, but that doesn't work for me either. On Nov 28, 9:00 am, CoolAJ86 <[email protected]> wrote: > > _method=put&{ "json": "here" } will never work. > > > In a query string you need to assign it to something: > > > eg. _method=put&json={ "json": "here" } > > That won't every work either. > In params_parser.rb the request is treated as whollyJSON, wholly XML, > wholly YAML, or wholly whatever. > > If it'sJSONit doesn't look for params, it just shoves the parsed > lump sum into a param called :_json > I suppose I could patch that to handle this case, but I'm not sure at > what level I should be looking. > > But I'm not clear on the flow of the application. At what level is it > deciding on what is an allowed request? and what is the symbol it > expects? :_method => :WHAT??? > > I tried :_method => 'put' and :_method => :put. Neither worked -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

