Reputation: 65183
I have views/application/index.html.erb
and in my routes file I have:
root :to => "application#index"
And my ApplicationController is as follows:
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 nav to localhost:3000 it still says the "you have just started a rails app project" page
I also have deleted public/index.html
Upvotes: 4
Views: 2327