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 <vikassarinster-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---