problem when combine devise user.rb with encropted_id
Hi,
When adding "encrypted_id key: '5gA6lgr5g3GOg7EOQ1caYQ123' "to user.rb, whenever I logged in, the system just redirect me to sign_in page again with message "You need to sign in or sign up before continuing."
When removed that line "encrypted_id key: '5gA6lgr5g3GOg7EOQ1caYQ123' " out of user.rb, everything works again.
Hey @afterclassroom,
I've been looking at the same problem and I think the issue cannot easily be fixed in encrypted_id. Rather, we need to do something with either devise or orm_adapter. Right now I've gone with the latter ... so anybody who want's to use devise and encrypted_id will likely need the same type of patch as I have done here: https://github.com/krsyoung/orm_adapter
Just add the following to your Gemfile to test:
gem 'orm_adapter', github: 'krsyoung/orm_adapter', branch: 'support_encrypted_id'
I'll follow-up with devise / orm_adapter teams to see what they think.