Am 28.08.2007 um 19:08 schrieb Sebastian Wenzlaff:
Hmm, hast du da einen Tipp wo ich nachschauen kann?
Dass der Controller-Name wegfällt würde ich wohl noch hinbekommen,
und zwar so:
map.connect '/impressum', :controller => 'static', :action =>
'impressum'
Das würde ich nun mit jeder Action machen, die keine
Applikationslogik erfordert. Und zusätzlich halt jeweils eine leere
Methode im entsprechenden Controller. Das kann es ja nicht sein,
oder? Wie mache ich das DRY-konform?
lieber sowas:
map.connect '/impressum', :controller => 'static', :action =>
'view', :permalink => 'impressum'
:permalink kann natürlich auch irgendwas anderes sein, oder du suchst
dir halt die ids raus.
ciao, tom
--
Thomas R. "TomK32" Koll <> http://tomk32.de <> http://kampodscha.com
just a geek trying to change the world
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug