Das war aber schnell. Vielen Dank!
Am 27.01.2011 um 16:27 schrieb Thomas von Deyen: > dann muss es eine collection sein, kein member > > Thomas von Deyen > > mobile +49 (0)179 492 3992 > mail tho...@vondeyen.com > web thomas.vondeyen.com > twitter twitter.com/tvdeyen > > Save the environment: > > Before printing this email, > please assess if it is really > needed! > > Am 27.01.2011 um 16:25 schrieb rubyonrails...@galt.de: > >> Hi, >> >> ich hänge hier schon wieder fest. Sorry, wenn das nervt. >> >> Ich würde gerne eine bestimmte route definieren: >> >> resources :carts do >> member do >> get "add/:product_id", :action => 'add' >> end >> end >> >> aber die route, die generiert wird sieht so aus: >> >> cart GET /carts/:id/add/:product_id(.:format) >> >> Das ist aber genau das nicht, was ich erreichen möchte, denn die Id des >> Carts wird nicht übergeben. Ich benötige das als Ergebnis: >> >> cart_add GET /carts/add/:product_id(.:format) >> >> Geht das überhaupt oder ist das in den routes garnicht vorgesehen? >> >> >> Viele Grüße >> >> Michael Kastner >> _______________________________________________ >> 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 _______________________________________________ rubyonrails-ug mailing list rubyonrails-ug@headflash.com http://mailman.headflash.com/listinfo/rubyonrails-ug