How about

    resources :memberships, only: :index