Ruby on Rails
Tuesday, May 17, 2011
On 17 May 2011 06:26, Chad Eubanks <chadcreation@gmail.com> wrote:
> In my routes file I have the following nested resource:
>
> resources :users do
> collection do
> get 'posts'
> end
> end
PS Just to clarify, rather than "collection" you possibly want to use
the syntax:
resources :users do
resources :posts
end
http://guides.rubyonrails.org/routing.html
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment