# Noob question re: partials

**URL:** <https://www.ruby-forum.com/t/noob-question-re-partials/138113>\
**Category:** Rails\
**Created:** [May 20, 2008, 10:08am UTC](https://www.ruby-forum.com/t/noob-question-re-partials/138113 "2008-05-20T10:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![validkeys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/da6949/32.png) [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Post date:** [May 20, 2008, 10:08am UTC](https://www.ruby-forum.com/t/noob-question-re-partials/138113/1 "2008-05-20T10:08:11Z")

</div>

Hi there, I have been searching these discussions for a while trying  
to find an answer to this question. I am learning rails and have been  
analyzing basecamp a bit more trying to figure out how they did  
different things. One thing that I noticed was that the URL, once you  
are inside of a project, always has the project and id in the url.  
So, I click MY Project, and the URL goes to this:

/projects/my\_project\_id/project/log

now when i click the to do’s tab, the URL goes to this:

projects/my\_project\_id/todos

What I am wondering is what controller action is being routed to here?  
Is it the Projects/view action and then that action renders partials  
based on what comes after the project ID? Or is it something else?

Its kind of late an I hope this makes sense.

Thanks!

---

<div class="post-metadata">

**Author:** ![validkeys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/da6949/32.png) [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Post date:** [May 20, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/noob-question-re-partials/138113/2 "2008-05-20T14:31:03Z")

</div>

It’s RESTful routing, and by the looks of things they have a  
TodosController  
handling that.

Read my guide to gain a better understanding of restful routing:

> **[frozenplague.net](http://frozenplague.net/2008/01/06/restful-routing-an-overview/)**
>
> This domain may be for sale!

On Tue, May 20, 2008 at 11:36 AM, validkeys  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> now when i click the to do’s tab, the URL goes to this:
> 
> >

–  
Appreciated my help?  
Recommend me on Working With Rails  
[http://workingwithrails.com/person/11030-ryan-bigg](http://workingwithrails.com/person/11030-ryan-bigg)
