Saturday, July 20, 2013

[Rails] 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??

--
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate