# Password\_salt

**URL:** <https://www.ruby-forum.com/t/password-salt/112038>\
**Category:** Rails\
**Created:** [August 14, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/password-salt/112038 "2007-08-14T16:09:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [August 14, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/password-salt/112038/1 "2007-08-14T16:09:39Z")

</div>

I have been working a mthed that encryptes a password. It is something  
that I have done a few times before but I am getting a message saying:

Can’t find method password\_salt

In my model I am doing require ‘digest/sha2’, which I thought would  
solve all my problems. Am I supposed to be making other modifications in  
another file in order to use methods like password\_salt and  
password\_hash? Thanks,

~S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [August 14, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/password-salt/112038/2 "2007-08-14T16:39:23Z")

</div>

password\_salt and password\_hash are not methods of any ruby library.  
most likely you need to make sure they are columns in your model’s  
table
