Rails tutorial 2章を現在学習中です。scaffoldで生成したユーザーページにアクセスするために「rails s」でサーバを立ち上げてChromでlocalhost:3000にアクセスしようとしたら
「このサイトにアクセスできません」と表示されてしましました。
原因として何が考えられるでしょうか?
ちなみにサーバを起動した際のメッセージは以下の通りでした。
rails s
=> Booting Puma
=> Rails 5.1.6 application starting in development
=> Run rails server -h
for more startup options
Puma starting in single mode...
- Version 3.9.1 (ruby 2.4.1-p111), codename: Private Caller
- Min threads: 5, max threads: 5
- Environment: development
- Listening on tcp://localhost:8080
Use Ctrl-C to stop
Listening on tcp://localhost:8080 なのですから、 localhost:3000 ではなく localhost:8080 でアクセスすべきかと思います。