Forum: Ruby on Rails simple rails url question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7a666449acc7e18a7002bc88798a44d3?d=identicon&s=25 Pingu Penguin (pingu)
on 2007-05-14 22:16
Hi, how do i have my rails index page at, and not Is this done in the routes.rb? if so, how?
A73f446eaaf56db0aeaa578aa373989b?d=identicon&s=25 Terry Donaghe (Guest)
on 2007-05-14 22:32
(Received via mailing list)
Hi Pingu,

Just take a look at routes.rb - it pretty much tells you in there what

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
work fine.  Create an index method in your controller and an
index.rhtmlfile in the views folder for your controller, delete the
file and your url should now point to that controller's index page.

Good luck!

On 5/14/07, Pingu Penguin <> wrote:
Terry (TAD) Donaghe
7a666449acc7e18a7002bc88798a44d3?d=identicon&s=25 Pingu Penguin (pingu)
on 2007-05-15 09:11
Brilliant! works perfectly!
This topic is locked and can not be replied to.