LoginSignup
1
0

More than 3 years have passed since last update.

http://localhost:3000/ に自分の表示したいページを設定する(routes.rb を編集して)

Last updated at Posted at 2020-11-12

http://localhost:3000/ で自分が表示したいページを設定するには

config/routes.rb
root to: 'コントローラ名#アクション名'

例えばブログコントローラの一覧を表示したかったら

config/routes.rb
root to: 'blogs#index'

とすれば良い!


こちらの記事を参考にさせていただきました!
https://qiita.com/higu1988/items/0287fffe5ee54d325919


プログラミング初学者です。間違いがありましたらお教え頂けるとありがたいです:robot:

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0