# Routes.rb

**URL:** <https://www.ruby-forum.com/t/routes-rb/193242>\
**Category:** Rails\
**Created:** [August 13, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/routes-rb/193242 "2010-08-13T23:10:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [August 13, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/routes-rb/193242/1 "2010-08-13T23:10:05Z")

</div>

I’m following the tutorial here:

> **[Getting Started with Rails — Ruby on Rails Guides](https://edgeguides.rubyonrails.org/getting_started.html)**
>
> Getting Started with RailsThis guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a...

And, so far, I have the following in the routes.rb file:

get “home/index”  
resources :posts  
root :to =\> “home#index”

I know what "root :to =\> “home#index” is.

But, what is the use of the following, what do they mean?

get “home/index”  
resources :posts

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [August 14, 2010, 1:33am UTC](https://www.ruby-forum.com/t/routes-rb/193242/2 "2010-08-14T01:33:14Z")

</div>

run

rake routes

and you’ll see all the routes they create. comment one out and run it  
again to see what goes away

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [August 14, 2010, 4:15am UTC](https://www.ruby-forum.com/t/routes-rb/193242/3 "2010-08-14T04:15:32Z")

</div>

Tony P. wrote:

> run
> 
> rake routes
> 
> and you’ll see all the routes they create. comment one out and run it  
> again to see what goes away

Thanks Tony.
