On Tue, Mar 31, 2009 at 1:57 AM, Zhao Yi
<rails-mailing-l...@andreas-s.net>wrote:

>
> I start rails server and the default(http://localhost:3000) page would
> be Ruby on Rails welcome page. Can I change this page or redirect to a
> controller?


Hi, you can add the following in your routes.rb file at the top within the
block:

map.root :controller => "some_controller_name", :action =>
 "some_action_name"

Also, you can find additional examples with the routes.rb file.  I wish that
this
info helps.

Good luck,

-Conrad


>
> --
> 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 post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to