I used some simple rails commands, for example, rails generate scaffold and rails, generate controller command
rails g controller welcome index
who created the hello controller and index.html.erb file. Then in route.rb I uncommented the line
root 'welcome#index'
Now when i start the server
rails s
It works fine, and I can see my homepage at 127.0.0.1∗000. However, I had problems seeing it in production mode, when I start the s -e production rails, and when I load it into the hero. I get a postgres message on my computer, probably because I don't have postgres, but the heroku logs say:
ActionController::RoutingError (uninitialized constant WelcomeController)
, " " Ruby, , , , . .