2008/5/19 monica <[EMAIL PROTECTED]>: > tapi pas mau buat user lewat console kenapa error y...errornya tu > "uninitialized constant SHA1"... > > mang pas di user.rb di method self.encrypted_password(password,salt) > ada Digest :: SHA1.hexdigest(string_to_hash) > > apa method itu yg salah???
Anda butuh require dulu library ybs di paling atas file model tsb. require 'digest/sha1' Blog http://tinyurl.com/2bjgvn

