Doing destructive actions with a GET request

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,



just “post” a link_to_remote

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs