Hi Pingu,
Just take a look at routes.rb - it pretty much tells you in there what to
do.
Look at this section:
# You can have the root of your site routed by hooking up ''''
# -- just remember to delete public/index.html.
# map.connect '''', :controller => "welcome"
Uncomment that last line, put in the name of your controller and it should
work fine. Create an index method in your controller and an
index.rhtmlfile in the views folder for your controller, delete the
public/index.html
file and your url should now point to that controller''s index page.
Good luck!
On 5/14/07, Pingu Penguin
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi, how do i have my rails index page at www.thing.com, and not
> www.thing.com/controller. Is this done in the routes.rb? if so, how?
> Thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Terry (TAD) Donaghe
http://tadspot.tumblr.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---