# Nester routes issue

**URL:** <https://www.ruby-forum.com/t/nester-routes-issue/127378>\
**Category:** Rails\
**Created:** [January 28, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/nester-routes-issue/127378 "2008-01-28T19:24:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sotirac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Post date:** [January 28, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/nester-routes-issue/127378/1 "2008-01-28T19:24:52Z")

</div>

This is a snippet of my routes.rb file

map.resources :users do |users|  
users.resources :blogs do |blogs|  
blogs.resources :articles do |articles|  
articles.resources :comments  
end  
blogs.resources :comments  
end  
end

Just wondering if it is possible to have the comment model in 2  
different places. From the snippet code, a blog can have comments.  
it is also possible for articles to have comments as well. I’m just  
wondering if there is an easy way to handle this since I will have a  
very complicated comments\_controller. The comments\_controller will  
have to determine where it is comming from, either through users/blogs/  
articles/comments or user/blog/comment.

Let me know if there is an easier way of doing this.

Thank you.
