I find that when I use users_path(user) it returns /users.id where id is the id of the user but I want it to return /users/id. My config routes.rb looks like the following.
# config/routes.rb
Test::Application.routes.draw do
root to: "static_pages#home"
resources :users, only: [:index, :show]
devise_for :users
end
Use this for a path to a singular user:
Use this for a path to all the users, or the index page: