2

I'm looking for a way to keep the Ruby on Rails "default information page." In Rails 7, it is the page that shows the Rails logo in the center and the version numbers on the bottom for Ruby, Rails, etc. Once you add your routes to the config/routes.rb file, the default page no longer shows. I'd like it to be my index page for simple experimental projects at home. Any ideas? Maybe it's associated with the Puma webserver? Thanks!

1 Answer 1

7

This page is coming from rails, and it's handled by the WelcomeController. To keep it, simply add the following route to your routes file:

  get 'your-unique-path', to: 'rails/welcome#index'

  # or

  root to: 'rails/welcome#index'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.