Hier bin ich bisher immer fündig geworden: http://guides.rails.info/routing.html Grüße, Tobi
Am 30. November 2009 11:41 schrieb Michael Schuerig <mich...@schuerig.de>: > > Ich suche ein Beispiel, wie ich folgende Routes erreichen kann > > Der aktuelle User ergibt sich aus der Session: > foo/users -> Foo::UsersController#show > foo/users/articles -> Foo::Users::ArticlesController#index > foo/users/articles/1 -> Foo::Users::ArticlesController#show > > Alternativ foo/user statt foo/users. > > Der aktuelle User wird explizit angegeben (nur für Admins) > foo/users/1 -> Foo::UsersController#show > foo/users/1/articles -> Foo::Users::ArticlesController#index > foo/users/1/articles/1 -> Foo::Users::ArticlesController#show > > Michael > > -- > Michael Schuerig > mailto:mich...@schuerig.de > http://www.schuerig.de/michael/ > _______________________________________________ > rubyonrails-ug mailing list > rubyonrails-ug@headflash.com > http://mailman.headflash.com/listinfo/rubyonrails-ug >
_______________________________________________ rubyonrails-ug mailing list rubyonrails-ug@headflash.com http://mailman.headflash.com/listinfo/rubyonrails-ug