0

Usually deleting the public/index.html in my Rails app works. However, I recently updated Rails,I'm using version 4.0 now, and the public/index.html no longer exist. What should I do to get rid of the "Welcome Aboard" page in Rails 4.0?

  • you don't have to get rid of it anymore. (that was rails 3 :). Now i'ts replaced as soon you set the root path as described in your config/routes.rb file. – ksu Nov 05 '13 at 23:19
  • 1
    This is also only visible in development environment: `if Rails.env.development? app.routes.append do get '/rails/info/properties' => "rails/info#properties" get '/rails/info/routes' => "rails/info#routes" get '/rails/info' => "rails/info#index" get '/' => "rails/welcome#index" end` https://github.com/rails/rails/blob/master/railties/lib/rails/application/finisher.rb – bigtex777 Apr 15 '15 at 23:28

1 Answers1

4

You need to set the root route in config/routes.rb. For example, to default to the index action in your welcome controller:

root "welcome#index"

See http://guides.rubyonrails.org/getting_started.html#setting-the-application-home-page

Dylan Markow
  • 123,080
  • 26
  • 284
  • 201