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
@@ -70,12 +70,11 @@
<li>1 special character</li> <li>1 special character</li>
</p> </p>
<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/}
</pre> </pre>
</div> </div>
</div> </div>