How to redirect to a specific page?

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to
redirect localhost:3000 to a specific page. i opened routes.rb file and
uncommented the line

map.root :controller => “Welcome”
I created a controller named Welcome and a view named index. I also
deleted the default index file as suggested in some of the
websites.However, the page is not getting redirected to new index page.
What is the problem??

On 21 July 2013 04:34, Pratik S. [email protected] wrote:

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to
redirect localhost:3000 to a specific page. i opened routes.rb file and
uncommented the line

map.root :controller => “Welcome”
I created a controller named Welcome and a view named index. I also
deleted the default index file as suggested in some of the
websites.However, the page is not getting redirected to new index page.
What is the problem??

If it is not getting redirected then what do you see instead?

Also what do you see in development.log when you try to go to the page.

If you are new to Rails then if you have not already done so then work
right through a good tutorial such as railstutorial.org (which is free
to use online). That will show you the basics of rails.

Colin

On Jul 20, 2013, at 8:34 PM, Pratik S. [email protected] wrote:

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to
redirect localhost:3000 to a specific page. i opened routes.rb file and
uncommented the line

map.root :controller => “Welcome”
I created a controller named Welcome and a view named index. I also
deleted the default index file as suggested in some of the
websites.However, the page is not getting redirected to new index page.
What is the problem??

Did you remove public/index.html?