Forum: Ruby on Rails Doing destructive actions with a GET request

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.
Matthew L. (Guest)
on 2006-04-12 18:19
(Received via mailing list)
I know that you should always use a POST to perform actions that are
destructive.  I intend to break this rule and use a GET, but before I
I'd like to know if there is a better way of doing this:-

I have an account edit form for the user to make changes to their
 They have to be logged-in to do this.  The problem is I have a
file_column field within the form which is storing an image - their
avatar, or whatever, and I need a button right there in the middle of
form for them to delete their logo if they wish.  Obviously I can't nest
form within a form, so I was going to make this a link to a
'/user/delete_image' action.

Is there a better way of doing this (without heavy javascript,


Roberto S. (Guest)
on 2006-04-12 18:26
(Received via mailing list)
just "post" a link_to_remote
This topic is locked and can not be replied to.