How to add a Root Route to your Rails app
21-Jul-2026 7
You need to replace the default, “Yay! You’re on Rails” landing page with a real index page for your app. Create a route 🛤️ Go to config > routes.rb file In the Rails.application.routes.draw method, enter the route: get root, to: "main#index" Create a controller 👨✈️ Go to app...