updated tutorial to reflect changes to the correct code listed within the user model

This commit is contained in:
cktricky
2014-03-09 20:16:54 -04:00
parent 12f3bc0378
commit c559bd5602
@@ -72,7 +72,6 @@
<pre class="ruby"> <pre class="ruby">
validates :password, :presence => true, validates :password, :presence => true,
:confirmation => true, :confirmation => true,
:length => {:within => 6..40},
:if => :password, :if => :password,
:format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/} :format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/}