Forum: Ruby on Rails Help on validates_format_of

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.
Michel D. (Guest)
on 2006-02-27 18:24
Hello,

i'm quite new with Ruby and i've been headbreaking quite a while
on the following question. So I hope somebody can help this Noob on
Rails.

I want to use validates_format_of on the password a user enters for
his or her account. I want it to check on the following:

1.. The password has to have a minimum of 2 non-capitalized characters.
    with the characters i mean: a to z

AND

2.. The password has to have a minimum of 2 CAPITALIZED characters.
    with the characters i mean: A to Z

AND

3.. The password needs to have another charachter like,
    !@#$%^&*()~`';: etc.

I hope someone can give me the answer.
Already thx for helping me out.

Michel Dogger
Michel D. (Guest)
on 2006-03-01 09:47
Anybody?
This topic is locked and can not be replied to.