Is it possible to specify a put or delete http verb from the route.rb, for a specific path?
Like:
get 'photos/show'
I tried to do it with match like the below:
match 'photos/show' => 'photos#show', :via => :delete
In the rake routes it seems right but it doesn't do a delete http request. Also I tried:
match 'photos/show' => 'photos#show', :via => :random
And in the rake routes its shows "random"
It seems that you can specify get or post as shown in the guides, but I don't know if I can specify put or delete. Is it possible?