By the way, It's also worth it to have a look on this
rest-client<https://github.com/rest-client/rest-client>

You could just do

RestClient.delete 'http://example.com/resource'



On Wed, Apr 16, 2014 at 7:23 PM, *** Mateus *** <[email protected]> wrote:

> What's the output of $rake routes ?
>
>
> On Wed, Apr 16, 2014 at 7:19 PM, prabhu <[email protected]>wrote:
>
>> Sorry it was for delete method.. So for DELETE method is it possible
>>
>>
>> On Wednesday, 16 April 2014 04:15:49 UTC-5, Mateus Couto wrote:
>>
>>> HTTP POST request cannot be sent via URL.
>>> You need to use some external tool such as cURL or wget.
>>>
>>>
>>>
>>>
>>> On Wed, Apr 16, 2014 at 7:05 PM, Pradeep Achuthan <[email protected]
>>> > wrote:
>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I am creating a web service in rails application and I need to
>>>> configure routes with respect to "books/book_id/delete" with post method.
>>>>
>>>> But since I will not have a view page for this to create a book item,
>>>> for testing purpose I am typing the url in the browser as
>>>>
>>>> *    localhost:3000/books/book_id/delete*
>>>>
>>>> But now when I type the above url in browser it is taking as *GET*request 
>>>> and showing error msg as
>>>>
>>>> *Routing Error*
>>>>
>>>> *No route matches [GET] "/books/sherlock/delete"*
>>>>
>>>> * Try running rake routes for more information on available routes. *
>>>>
>>>> So how do I configure the routes for the above.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ruby on Rails: Talk" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>>
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/rubyonrails-talk/5432c2b6-3343-47c4-b4ca-
>>>> f4c017d77cba%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/5432c2b6-3343-47c4-b4ca-f4c017d77cba%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/5a1b3b18-616f-4f67-bb21-46514d3a9c86%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/5a1b3b18-616f-4f67-bb21-46514d3a9c86%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAOEz2q_40Sr9X0W9aVdPvg9eDHPZPo3PSezm9EqOAbAKnBNsqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to