Forum: Ruby on Rails How to set homepage in Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Near C. (Guest)
on 2008-12-31 04:34
Hi :

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

Thanks.

Cruise
Billy H. (Guest)
on 2008-12-31 04:43
(Received via mailing list)
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
Near C. (Guest)
on 2008-12-31 04:52
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
This topic is locked and can not be replied to.