SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    india
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need suggestions from you..

    i have been trying to develope a full fledged website in ROR . it is almost complete.
    But i have a problem
    number1.

    admin is my first controller to enter the application
    therefore i write http://localhost:3000/admin to see the login page

    can i anyways just write http://localhost/ and see the index page of the admin controller.
    i mean i write the url http://localhost:3000/ and it automatically redirects to http://localhost:3000/admin

    ihave tried
    [map.connect '',:controller =>'admin',:action=>'index']
    but it gives routing errors.

    thanks in advance
    Gaurav

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aside from the brackets, that mapping looks ok to me.
    What's the exact error?
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •