I am working on a Ruby on Rails Tutorial: Learn Rails as an example. I am in the section "Static pages are more likely."
I get an error after creating an HTML page in a public directory called public / hello.html and should look like Figure 3.3. My problem is that when I try to create a page and make it visible on localhost: 3000 / hello.html, I do not see the page being displayed. Instead, the error message "Routing error No route matches" /hello.html "appears
I did not make any changes to the routing; I thought Rails had to be smart enough to find "hello.html" because it is in the same directory as the page "public / index.html" and the name of the page is "hello.html"?
Could you explain?
source
share