title: Default Routing in rails
body: <p>According to <a href="http://guides.rubyonrails.org/routing.html" rel="nofollow">http://guides.rubyonrails.org/routing.html</a>:</p>
  
  <pre><code>HTTP Verb   Path     Action     Used for
  GET /photos index    display  a list of all photos
  GET /photos/new  new     return an HTML form for creating a new photo
  POST    /photos create   create   a new photo
  GET /photos/:id  show    display a specific photo
  GET /photos/:id/edit     edit   return an HTML form for editing a photo
  PATCH/PUT   /photos/:id  update update a specific photo
  DELETE  /photos/:id destroy  delete a specific photo
  </code></pre>
  
  <p>How does rails know when a PATCH/PUT REST is received. I understand the get/post but PATCH/PUT I cannot figure it out. Is something being done internally, like in the input.</p>