dan.laffan PRO said almost 2 years ago on Stripe Donations :
This might be a simpler implementation of the routes:

resource :donates, only: :show do
  collection { get :thankyou }
end