I have one controller with few actions. Here is my routes.rb: map.index 'index', :controller => "main", :action => "home" map.root :index
map.with_options :controller => 'main' do |main|
main.services 'services', :action => 'services'
main.portfolio 'gallery', :action => 'gallery'
main.about 'about', :action => 'about'
main.contact 'contact', :action => 'contact'
end
however once navigating to www.mydomain.com/main rails throws: ActionController::UnknownAction (No action responded to index. Actions: about, contact, gallery, home, send_quotation, and services): Rendering rescues/layout (not_found) How to route it to "home" ? thanks