Hello,

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.

Cyril

2009/7/10 Vikas <[email protected]>

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to