Ruby on Rails Password Validation

https://stackoverflow.com/questions/5123972/ruby-on-rails-password-validation