Topic: Library not found for class Digest::SAM2 -- digest/sha2
I am new to ruby and rails and am trying to learn the infrastructure (obviously) and am using Agile Web Development with Rails (4th ed) to start with.
Using Rails 3.0.7 and Ruby 1.8.7
In attempting to encrypt a password + salt using the code:
Digest::SHA2.hexdigest(password + 'wibble' + salt)
I get the error in the subject.
How do I tell rails where to find the library? It exists in the proper directory in the Ruby install.
As a side question, what is the point of 'wibble' in thhe code?
Thanks in advance for any help. -Fred
Last edited by fredrated (2011-08-16 12:16:11)