Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `encrypted_attribute_iv' #351

Open
railsfans opened this issue Jul 10, 2019 · 1 comment
Open

NoMethodError: undefined method `encrypted_attribute_iv' #351

railsfans opened this issue Jul 10, 2019 · 1 comment

Comments

@railsfans
Copy link

i use you gem in my rails project; however meet some problems;
first i generate user model by type 'rails g model user encrypted_password:string' command; then modify user.rb configure by add attr_encrypted :user, :key => "12345678912345678912345678914712123456"; last i start rails console and type 'user=User.new; user.password=123' command and console throw such error NoMethodError: undefined method `encrypted_password_iv', appreciate for your help

@hjoseph96
Copy link

You've gotta create that column in the db for every encrypted field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants