I'm a beginner.

I am studying the setting of devise of rails.

As it stands,

install devise
Creating a model
Edit migration
Generating and editing view files

I was able to do it.

And when I try to register as a user on the screen, I get a Routing Error.

I checked the setting process on other sites, but this error cannot be cleared.

Could you tell me about the rails devise settings?

Please write your question in detail here.
(Example) I am making a ●● system with PHP (CakePHP).
The following error message occurred while implementing the features.

Routing Error
No route matches [POST] "/ users/sign_up"
Corresponding source code
Rails.application.routes.draw do
  devise_for: users
  root to: "toppage # index"

class TpopageController
What I tried

Reconfirmation of devise implementation flow
Try putting resouces in the user controller

Supplementary information (FW/tool version, etc.)

rails 6.0.0

  • Answer # 1

    I don't know if the terminal was buggy, but it worked when I rebuilt it.

  • Answer # 2

    bin/rails routesWhen you execute the command, the route list is displayed.
    Among them/ users/sign_upWhy don't you check if it is included?

    Also, in the error message
    No route matches [POST] "/ users/sign_up"
    There is, but sign_up isGET requestI think that, but the newly created link may be sent by the POST method. In viewbutton_toDo you use?