[rails] is relative validation possible?

R

R°RLover

now when i use validates_format_of / validates_numericality_of / ...

it also checks if something is filled in and this is what i dont want

how can i make that if only someone would fill a field, it would be
checked on those validitys ?

thx
 
A

Austin Ziegler

T24gNC80LzA2LCBSwrBSTG92ZXIgPGhhcmRzdHlsZUBnbWFpbC5jb20+IHdyb3RlOgo+IG5vdyB3
aGVuIGkgdXNlIHZhbGlkYXRlc19mb3JtYXRfb2YgLyB2YWxpZGF0ZXNfbnVtZXJpY2FsaXR5X29m
IC8gLi4uCj4KPiBpdCBhbHNvIGNoZWNrcyBpZiBzb21ldGhpbmcgaXMgZmlsbGVkIGluIGFuZCB0
aGlzIGlzIHdoYXQgaSBkb250IHdhbnQKPgo+IGhvdyBjYW4gaSBtYWtlIHRoYXQgaWYgb25seSBz
b21lb25lIHdvdWxkIGZpbGwgYSBmaWVsZCwgaXQgd291bGQgYmUKPiBjaGVja2VkIG9uIHRob3Nl
IHZhbGlkaXR5cyA/CgpZb3UnbGwgcHJvYmFibHkgZ2V0IGEgbXVjaCBmYXN0ZXIgYW5zd2VyIGF0
OgoKaHR0cDovL2xpc3RzLnJ1YnlvbnJhaWxzLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3JhaWxzCgot
YXVzdGluCi0tCkF1c3RpbiBaaWVnbGVyICogaGFsb3N0YXR1ZUBnbWFpbC5jb20KICAgICAgICAg
ICAgICAgKiBBbHRlcm5hdGU6IGF1c3RpbkBoYWxvc3RhdHVlLmNhCg==
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,205
Messages
2,571,067
Members
47,673
Latest member
MahaliaPal

Latest Threads

Top