Friday, August 13, 2010

[Rails] routes.rb

I'm following the tutorial here:
http://edgeguides.rubyonrails.org/getting_started.html

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate