title: Rails - Specify http verb PUT or DELETE from the route
body: <p>Is it possible to specify a put or delete http verb from the route.rb, for a specific path? </p>
  
  <p>Like:</p>
  
  <p><code>get 'photos/show'</code></p>
  
  <p>I tried to do it with match like the below:</p>
  
  <pre><code>match 'photos/show' =&gt; 'photos#show', :via =&gt; :delete
  </code></pre>
  
  <p>In the rake routes it seems right but it doesn't do a delete http request. Also I tried:</p>
  
  <p><code>match 'photos/show' =&gt; 'photos#show', :via =&gt; :random</code></p>
  
  <p>And in the rake routes its shows "random"</p>
  
  <p>It seems that you can specify get or post as shown in the <a href="http://guides.rubyonrails.org/routing.html#http-verb-constraints" rel="noreferrer">guides</a>, but I don't know if I can specify put or delete. Is it possible?</p>