I have created a NEW rails application using
rails new rail_app
So if I want to see my development site I need to do the following
http://localhost:3000/Site/index
I want to reroute all requests to http://localhost:3000
The book I’m using to learn from is an older version of rails and it tells me to uncomment
map.connect ”, :controller => ‘site’, :action => ‘index’
but it doesn’t seem to work. Any help would be appreciated.
You need to direct a controller action to root using the root command. See this guide:
http://guides.rubyonrails.org/routing.html#using-root