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?
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.