Am 29.10.2009 um 13:12 schrieb Marco Scholl:
nein, nimm einfach self.send("#{pathname}_path")
Hallo Marco
brauche natürlich noch die id
Das klappt leider gar nicht...
self.send("#{ar.controller}_path(:id => #{ar.id})")
und ähnliche Versuche scheitern.. ne Idee?
Danke+Gruß
Am 29.10.09 11:47 schrieb "Werner Laude" unter <newsgr...@wernerlaude.de
>:
Hallo.
Wie bekomme ich die beiden Teile zusammen:
ar.type.downcase + _path
<%=link_to('ansehen', #käme dann hier rein , :class=>'') %>
Ich versuche die db Info type bei einer STI zu nutzen um bei einer
Sammlung von links(Archiv)
gleich zum richtigen show zu routen.
Gruß
Werner Laude
newsgr...@wernerlaude.de
------------------------------------------
http://www.webagentur-laude.de
http://www.seoagentur-koeln.de
------------------------------------------
_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug
--
Viele Grüße
Ralph
_______________________________________________
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