On Jan 29, 2008 1:11 PM, Philip Jenvey <[EMAIL PROTECTED]> wrote:
>
>
> On Jan 29, 2008, at 10:51 AM, Mike Orr wrote:
>
> > One problem I've come across is the lack of a delete confirmation
> > form. Ben says you can do it in Javascript before the DELETE
> > executed, but I need something that degrades if users don't have
> > Javascript. It looks like " GET /messages/1/delete" would nicely fit
> > into that scheme.
>
>
> GETs should not have any side effects. So modifying/deleting a
> resource should be done via a POST.
What I meant was, "GET /messages/1/delete displays the confirmation
form ("Do you really want to delete 'My Favorite Pony'?"). Then
either "DELETE /messages/1" or "POST /messages/1/delete" could be
implemented to delete it. The latter is what I've used in the past.
Though I like Ian's idea of using a query param to choose a form... maybe.
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---