title: Rails routing: add a custom route to the standard list of actions
body: <p>Rails routes create the 7 CRUD actions by default following REST.</p>
  <pre><code>resources :users
  </code></pre>
  <p>However, I have a <code>confirm_destroy</code> action that I use in almost every resource, because I have a lot of logic that goes on the confirmation page; it's not just a simple yes/no alert dialog.</p>
  <pre><code>resources :users do
    get :confirm_destroy, on: :member
  end
  </code></pre>
  <p>With 50+ resources, it gets tedious to write this out for each resource and my routes file is literally 3x longer because of this.</p>
  <p>Is there any way to add an action to the standard 7 for the <code>resources</code> block such that</p>
  <pre><code>resources :users
  </code></pre>
  <p>would be the same as</p>
  <pre><code>resources :users do
    get :confirm_destroy, on: :member
  end
  </code></pre>
  <p>and I can use it in the routes as a standard action, ie:</p>
  <pre><code>resources :users, only: [:show, :confirm_destroy, :destroy]
  
  resources :users, except: [:confirm_destroy]
  </code></pre>