war nicht böse gemeint :D lg marco

Am 30. November 2009 12:48 schrieb Tobias Weiß <tobias.we...@gmail.com>:
> @marco: war mein erster gedanke, ich hatte die mail nur kurz überflogen.
> grüße, tobias
>
> ---
> Am 30. November 2009 12:09 schrieb Marco Scholl <deve...@marco-scholl.de>:
>>
>> @tobias
>> Ich denke das diese Anleitung Micheal bekannt sein dürfte :D
>>
>> @michael
>> Ich löse so was immer mit 2 verschiedenen Routergruppen
>>
>> >> 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
>>
>> foo/user
>> foo/user/articles
>> ...
>>
>> hier resource (singular)
>>
>> >> foo/users/1            -> Foo::UsersController#show
>> >> foo/users/1/articles   -> Foo::Users::ArticlesController#index
>> >> foo/users/1/articles/1 -> Foo::Users::ArticlesController#show
>>
>> hier hier die normalen resoruces
>>
>> So kannst auch die Berechtigungen besser prüfen
>>
>> lg marco
>>
>> Am 30. November 2009 12:05 schrieb Tobias Weiß <tobias.we...@gmail.com>:
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> mfg marco
>> _______________________________________________
>> 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
>
>



-- 
mfg marco
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an