title: How to add a custom route with limited resources
body: <p>My <code>friendships</code> controller needed at first only two actions, <code>create</code> and <code>destroy</code>, so I added the following in <code>config/routes.rb</code>:</p>
  
  <pre><code>resources :friendships, only: [:create, :destroy]
  </code></pre>
  
  <p>However, I had to add a custom <code>drop</code> action to allow users to drop friendships requests.
  Since I need only these three actions and I will not not use all the RESTful resources, I wonder if I can edit <code>config/routes.rb</code> as follows:</p>
  
  <pre><code>resources :friendships, only: [:create, :destroy] do
    member do
      post :request, action: :drop
    end
  end
  </code></pre>