There are no path names because you haven't specified path names. If you're supplying custom routes instead of using resources
, you need to use :as
to provide a pathname:
match '/new_user' => 'home#new_user', via: :get, as: :new_user
You should also just use get
instead of match... via: :get
:
get '/new_user' => 'home#new_user', as: :new_user
However, given your set of routes, your better bet is to continue using resources
, but to supply a limited list of actions via :only
and a custom controller via :controller
:
resources :users, only: %w(new edit show create), controller: "home"