match '/clients/prospects' => 'clients#prospects' get '/clients/prospects' => 'clients#prospects' # or match for older Rails versions resources :clients class ClientsController < ApplicationController def index @clients = Client.where(prospect: false) end def prospects @prospects = Client.where(prospect: true) end end resources :clients do collection do get :prospects end end