# Get/post/put/delete

**URL:** <https://www.ruby-forum.com/t/get-post-put-delete/239542>\
**Category:** Rails\
**Created:** [March 4, 2014, 7:51am UTC](https://www.ruby-forum.com/t/get-post-put-delete/239542 "2014-03-04T07:51:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 4, 2014, 7:51am UTC](https://www.ruby-forum.com/t/get-post-put-delete/239542/1 "2014-03-04T07:51:17Z")

</div>

I trying to understand the purpose of each request of  
GET/POST/PUT/DELETE, generally we are using those in routes.rb of our  
Rails App. I need exact explainition with example of each one in Rails  
app.

---

<div class="post-metadata">

**Author:** ![selvag1005](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@selvag1005](https://www.ruby-forum.com/u/selvag1005)\
**Post date:** [March 4, 2014, 8:04am UTC](https://www.ruby-forum.com/t/get-post-put-delete/239542/2 "2014-03-04T08:04:05Z")

</div>

> **[Representational state transfer](https://en.wikipedia.org/wiki/Restful#Concept)**
>
> Representational state transfer (REST) is a software architectural style that was created to guide the design and development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of an Internet-scale distributed hypermedia system, such as the Web, should behave. The REST architectural style emphasises the scalability of interactions between components, uniform interfaces, independent deployment of components, and the creation of a layered architec...

> **[HTTP | Request methods](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods)**
>
> HTTP defines methods (sometimes referred to as verbs, but nowhere in the specification does it mention verb) to indicate the desired action to be performed on the identified resource. What this resource represents, whether pre-existing data or data that is generated dynamically, depends on the implementation of the server. Often, the resource corresponds to a file or the output of an executable residing on the server. The HTTP/1.0 specification defined the GET, HEAD, and POST methods, and the Met...

2014-03-04 14:51 GMT+08:00 Selvag R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![selvag1005](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@selvag1005](https://www.ruby-forum.com/u/selvag1005)\
**Post date:** [March 4, 2014, 8:08am UTC](https://www.ruby-forum.com/t/get-post-put-delete/239542/3 "2014-03-04T08:08:49Z")

</div>

[http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)

regards,  
Loganathan  
Mob: +91 7760780741 | +91 9944414388  
Skype: loganathan.sellappa  
ViewMe [http://vizualize.me/loganathan](http://vizualize.me/loganathan)
