Localhost isn't displaying

I’ve been working through Unit 2 (Saving Data), and for some reason the localhost page doesn’t display. I get the page not found error.

For example, I can’t see the /messages page. I’ve tried setting up the route as:
root 'messages#index’
get ‘/messages’ => 'messages#index’

but neither worked. Any suggestions?

I puzzled over this for a long time. It came down to the URL:


solved my problem. Let us know if this is the situation in your case, please.