How to set homepage in Rails


#1

Hi :

If I want http://localhost:3000/share to be homepage
http://localhost:3000/,
How can I do setting from rails ,please?

Thanks.

Cruise


#2

Hi:
in config/routes.rb

map.root :controller => “share”

Happy new Year!

On Wed, Dec 31, 2008 at 10:34 AM, Near C. <
removed_email_address@domain.invalid> wrote:


Posted via http://www.ruby-forum.com/.


TWRUG Blog:
http://blog.rubyonrails.org.tw

CFC on Rails:
http://zusocfc.blogspot.com

Only two surfaces of a box:
http://blog.pixnet.net/zusocfc


#3

Hi:

Thank you very much.
Happy new year.

Cruise

Billy H. wrote:

Hi:
in config/routes.rb

map.root :controller => “share”

Happy new Year!

On Wed, Dec 31, 2008 at 10:34 AM, Near C. <
removed_email_address@domain.invalid> wrote:


Posted via http://www.ruby-forum.com/.


TWRUG Blog:
http://blog.rubyonrails.org.tw

CFC on Rails:
http://zusocfc.blogspot.com

Only two surfaces of a box:
http://blog.pixnet.net/zusocfc