title: Resources vs. Match in routes.rb
body: <p>When creating routes in my config/routes.rb file, there are really two ways to do it. One is to use a match statement such as:</p>
  
  <pre><code>match 'devices/:device_id/cards/destroy/:id' =&gt; 'Cards#destroy', :as =&gt; :delete_card_for_device
  </code></pre>
  
  <p>The other is to use the resources statement:</p>
  
  <pre><code>resources :products do
    member do
      get 'short'
      post 'toggle'
    end
  end
  </code></pre>
  
  <p>At first I liked the match statement since I knew what it was doing and is simpler to understand, but the more I look at all of my match statements, the more I see that many of them could be replaced with a resources. Should I try to convert all of my match statements into resources? Are resources better than match statements?</p>