replace the default home page

How to replace the default home page. I tried map.root but it didn't
work. I should request to please provide me ways.

Delete or rename public/index.html ?



First, you should delete the file public/index.html if you want another controller to be called on your home page.
Once it’s done, you just have to add the line
map.root :controller => ‘your_controller’
(and maybe the action required if it’s not index) to your config/routes.rb and it’s over.
Since routes is loaded on your server startup, you’ll have to restart it too.