title: Difference between resource and resources methods
body: <p>What is the logical difference between <code>resource</code> and <code>resources</code> methods</p>
  
  <p>Here is some examples:</p>
  
  <pre><code>resource :orders, :only =&gt; [:index, :create, :show]
  
  &gt; rake routes
   orders POST       /orders(.:format)            orders#create
          GET        /orders(.:format)            orders#show
  
  
  resources :orders, :only =&gt; [:index, :create, :show]
  
  &gt; rake routes
   orders GET        /orders(.:format)            orders#index
          POST       /orders(.:format)            orders#create
    order GET        /orders/:id(.:format)        orders#show
  
  
  resource :orders
  
  &gt; rake routes
       orders POST       /orders(.:format)            orders#create
   new_orders GET        /orders/new(.:format)        orders#new
  edit_orders GET        /orders/edit(.:format)       orders#edit
              GET        /orders(.:format)            orders#show
              PUT        /orders(.:format)            orders#update
              DELETE     /orders(.:format)            orders#destroy
  
  
  resources :orders
  
  &gt; rake routes
       orders GET        /orders(.:format)            orders#index
              POST       /orders(.:format)            orders#create
    new_order GET        /orders/new(.:format)        orders#new
   edit_order GET        /orders/:id/edit(.:format)   orders#edit
        order GET        /orders/:id(.:format)        orders#show
              PUT        /orders/:id(.:format)        orders#update
              DELETE     /orders/:id(.:format)        orders#destroy
  </code></pre>
  
  <p>It looks like method <code>resource</code> does not create route for <code>index</code>, and helpers in some cases are different (new_order and new_orders). Why?</p>