Forum: Italian Ruby user group Validazione lunghezza campo

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Lorenzo P. (Guest)
on 2007-06-26 16:01
(Received via mailing list)
Salve a tutti !
Avrei bisogno di validare la lunghezza di un campo
(codice_fiscale_o_piva).
Questo campo deve essere lungo 11 caratteri oppure 16 caratteri.
Ho provato nel modo seguente senza ottenere risultato:

     validates_length_of :codfis_piva, :is =>11 || 16

....aiutatemi !!


Grazie a tutti !
Marco L. (Guest)
on 2007-06-27 15:41
(Received via mailing list)
Ciao Lorenzo,

On 26/06/07, Lorenzo P. <removed_email_address@domain.invalid> wrote:
>      validates_length_of :codfis_piva, :is =>11 || 16

www.rubyonrails.org -> Documentation -> API -> validates_length_of
http://api.rubyonrails.org/classes/ActiveRecord/Va...

Marco
This topic is locked and can not be replied to.