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
<kyle.davis-s5CVtH8h5JrZ3NRrNVlbw1aTQe2KTcn/@public.gmane.org>
wrote:
>
> 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!
>
> >
>
--
Appreciated my help?
Recommend me on Working With Rails
http://workingwithrails.com/person/11030-ryan-bigg
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---