Am 26.04.2008 um 20:02 schrieb Holger Hänisch:
view:
<td><%= button_to '+', plus_fehlzeiten_path(@mitarbeiter,fehlzeiten),
:action => 'plus' %>
mit link_to funktioniert es leider nicht. Das führt zu einer sehr
hässlichen Tabelle. Kann man da noch was machen?
das schon erwähnte rake routes sagt dir welche helper methoden erzeugt
werden, einfach _path anhängen. Aber wahrscheinlich wird keiner für dich
erzeugt, daher sollte das hier es tun.
button_to '+', {:controller => 'fehlzeiten', :action =>
'plus', :mitarbeiter_id => @mitarbeiter.id, .... }
ciao, tom
--
Thomas R. "TomK32" Koll || http://tomk32.de || http://ananasblau.com
just a geek trying to change the world
Skype: TomK32 || Mail: [EMAIL PROTECTED]
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug