Am 07.08.2010 um 12:38 schrieb Marco Scholl:

> Hi
> 
> ich muss eben einen validator auf ein vor- und nachname feld das keine
> zahl im text enthalten sein darf. ich bekomm das regex im
> validates_format_of nicht negativ.jemand eine idee?


sowas..?

validates_format_of :name, :with => /^[\w-]+$/ ,:message => "Nur 
Buchstaben/Leerzeichen/Bindestrich", :on => :create


Werner Laude
http://www.webagentur-laude.de





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

Antwort per Email an