views:

166

answers:

0

In our application we need to have some non standard routes.

How can I make router to forward all delete requests to #destroy action even if their is no id parameter in URL?

Example: DELETE /users/:user_id/follows/(.:format) {:action=>"destroy", :controller=>"followings"}