Redirecting to home page

I have just created a simple blog application and I have one question. I
designed a method and a view to show the latest three blogs in my
database. This looks great if you go to the page, but now I want to
redirect it so that when someone visits my homepage:

eg.
www.ruby-forum.com => They get the page I created. How do I get it use
the method I created and the view? I would also prefer to not have to
direct it somewhere like :

www.ruby-forum.com/home

Thanks!

Laim B. wrote:

I have just created a simple blog application and I have one question. I
designed a method and a view to show the latest three blogs in my
database. This looks great if you go to the page, but now I want to
redirect it so that when someone visits my homepage:

eg.
www.ruby-forum.com => They get the page I created. How do I get it use
the method I created and the view? I would also prefer to not have to
direct it somewhere like :

www.ruby-forum.com/home

Read the routing docs. What you want is probably map.root.

Thanks!

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]