Fearless Fool wrote in post #977888:
> Marnen Laibow-Koser wrote in post #977875:
>> I rarely use delete links...
>
> That's interesting!
>
>> My instinct is to suggest defining a GET destroy action.  OTOH, that's
>> not idempotent.  Aaugh!
>
> Browsers only generate GETs and POSTs, so any DELETE action needs to be
> simulated somehow.  And as you point out, GETs (by contract) must be
> idempotent.  Which leave POST messages.
>
> So I'm curious: how do you delete things?  Write semi-custom forms that
> POST something?

Usually, I don't delete things from the Web interface.  I generally hide 
them (like acts_as_paranoid), use ActiveScaffold, or require deletion 
from the console.  That's not suitable for every application, obviously.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to