> If it's a RESTful client that really speaks REST then you're gonna be
> in trouble.
Why would he be in trouble? What would stop him from sneaking in the 
same parameter into a POST request just like Rails does?

Verb & URL:
POST /resources/1

Parameters:
_method=DELETE

Would that not work? I'm not sure since I haven't tried it.

Philip Hallstrom wrote:
> On Nov 4, 2008, at 9:28 AM, gummybears wrote:
> 
>> delete records in a database table,
>> I thought by using the REST method, I was following RoR guidelines.
>>
>> My question is this, are they correct in saying I can use get's
>> instead of delete's ?
> 
> If your users are interacting with your site via a web browser then
> all the requests will be either GET or POST and Rails sneaks in a
> hidden parameter to set the actual verb (ie. the DELETE you want).
> 
> If it's a RESTful client that really speaks REST then you're gonna be
> in trouble.
> 
> That's my understanding anyway.

-- 
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