Hi, got a problem with the map.connect ‘’ in my website (I don’t know
much of routes as I never really checked it).
Ok so I just want to redirect automaticaly the users to my index page
when they get to the site. So the idea is that using the address
“http://localhost:3000” using a route the user get to “http://
localhost:3000/dentistManager”.
In my routes.rb I added:
map.connect ‘’, :controller => ‘dentistmanager’, :action => “index”
So it looks like that:
ActionController::Routing::Routes.draw do |map|
map.resources :consultations
map.resources :patients
map.resources :doctors
map.resources :appointments
map.connect ‘’, :controller => ‘dentistmanager’, :action => “index”
map.connect ‘:controller/:action/:id’
map.connect ‘:controller/:action/:id.:format’
end
What am I doing wrong?