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?? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53c8c094227741a587996ad906a3192a%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Jul 20, 2013, at 8:34 PM, Pratik S. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/AE67288E-C24D-47A4-91FF-5BCE244EB5B1%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 21 July 2013 04:34, Pratik S. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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> > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53c8c094227741a587996ad906a3192a%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtLhx_TBi5uiiSSAmz2cEfm_bcCuhYQfn7CdAe_T8UY2g%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.