I see lots of :
map.root :controller => "home"
Its I know simple, but what does home point to? A file? A controller? How/where does it gets its magic?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Read the documentation.
This particular route maps “/” to the action
index(default) of the controller “home”, most likely in “app/controllers/home_controller.rb”.map.connect "foo", :controller => "something", similarly, maps /foo to theindexaction of the “something” controller.