Is it possible to specify which HTTP method to use in the drop_receiving_element helper? I'm trying to follow REST best practices in my app. On one page I have the user drop an icon into an area which calls the "new" representation of a particular resource. However, drop_receiving_element sends the request as POST which is not allowed. How can I change the method so it makes a GET request?
on 2008-11-03 06:16
on 2008-11-06 18:22
For those curious, I solved this problem by abandoning the drop_receiving_element helper and writing my own Ajax.Updater (see Prototype documentation) code on the page. Ajax.Updater takes a "method" option which allows you to specify get, post, put, delete, etc.