Even if/static_pages/home is entered in the preview URL, "Oops File not found" is displayed.

I think the file itself has been created, but I don't know why it is not displayed.

I would appreciate it if you could teach me.

  • Answer # 1

    I think

    File not foundmeans that the URL is wrong or that the content cannot be provided correctly.

    bin/rails routes
    I think you should check the routing with

    . So if you don't include/static_pages/homethere is a problem with routing (config/routes.rb is likely to be wrong).