how to redirect to a specific page??

19 views
Skip to first unread message

Pratik S.

unread,
Jul 20, 2013, 11:34:41 PM7/20/13
to rubyonra...@googlegroups.com
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/.

Tamara Temple

unread,
Jul 21, 2013, 2:47:18 AM7/21/13
to rubyonra...@googlegroups.com
Did you remove public/index.html?

Colin Law

unread,
Jul 21, 2013, 10:27:21 AM7/21/13
to rubyonra...@googlegroups.com
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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> 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.
>
>
Reply all
Reply to author
Forward
0 new messages