Noob question re: partials

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!

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:

http://frozenplague.net/2008/01/06/restful-routing-an-overview/

On Tue, May 20, 2008 at 11:36 AM, validkeys
[email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs