Rails3: how to set my application root to application index #?

I have views/application/index.html.erb

and in the routes file I have:

  root :to => "application#index" 

And my ApplicationController looks like this:

 class ApplicationController < ActionController::Base protect_from_forgery def index # ask whether teh player wants to go first or second @player_start_character = "" end end 

but when i'm on localhost: 3000, it still says that "you just started the rails application project"

I also deleted public / index.html

+4
source share
1 answer

you need to delete the file / public / index.html

+6
source

Source: https://habr.com/ru/post/1337354/


All Articles