1
rails2에서 rails3으로 응용 프로그램을 마이그레이션하면 crypt/blowfish에서 오류 can't convert String into Integer
가 발생합니다."문자열을 정수로 변환 할 수 없습니다."레일 3의 crypt/blowfish에서 오류가 발생합니다.
설정/core_ext/string.rb 파일 :
def encrypt(key) <br/>
blowfish = Crypt::Blowfish.new(key)
blowfish.encrypt_string(self)
end
테스트/단위에서 호출 방법/core_ext/string_test.rb
def test_encryption
key = "test"
encrypted = str.encrypt(key)
end
어떻게이 문제를 해결하려면? 어떤 도움을 주시면 감사하겠습니다.