使用すると、idがユーザーのIDである場合users_path(user)に返されますが、返してほしいことがわかりました。私の設定routes.rbは次のようになります。/users.id/users/id
# config/routes.rb
Test::Application.routes.draw do
  root to: "static_pages#home"
  resources :users, only: [:index, :show]
  devise_for :users
end