Forum: Ruby on Rails Changing drop_receiving_element behavior to make a GET request instead of POST

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Evan (Guest)
on 2008-11-03 06:16
(Received via mailing list)
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?
Evan (Guest)
on 2008-11-06 18:22
(Received via mailing list)
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,
This topic is locked and can not be replied to.