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.
F9ac36eec5227f65d567b08e3e08c760?d=identicon&s=25 Lorenzo Pagano (Guest)
on 2007-06-26 14: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 !
77fec2b94c481ad3d2b2135b1f07ef5f?d=identicon&s=25 Marco Lazzeri (mclow)
on 2007-06-27 13:41
(Received via mailing list)
Ciao Lorenzo,

On 26/06/07, Lorenzo Pagano <lorenzo.pagano@gmail.com> 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.