Hi, thanks for the comment. I imagine that if you add devise_token_auth to your Gemfile and run bundle, the Devise gem would be added as a dependency (so you don't need to install Devise separately). Is this not the case?
Happy new year :)
Hmm, that's strange. Out of curiosity, I created a new repo and followed my own tutorial. I had to make some updates in the article to compensate for changes made in devise, but I didn't have to include the devise gem in the Gemfile. Feel free to check out the project: github.com/risafj/demo-for-devise-...
I had a fresh copy of the api installed using ruby 2.5.0. If I remove the devise gem, the auth breaks lol I know this is weird. I'll upgrade both ruby and rails and try again. But yea, I believe something weird is happening with my setup.
It's nice to let readers know that Devise gem must be installed first π
Hi, thanks for the comment. I imagine that if you add
devise_token_auth
to your Gemfile and run bundle, the Devise gem would be added as a dependency (so you don't need to install Devise separately). Is this not the case?Hi. It's not the case with Rails 6 API in my case. I do not know why. My Gemfile:
Happy new year :)
Hmm, that's strange. Out of curiosity, I created a new repo and followed my own tutorial. I had to make some updates in the article to compensate for changes made in
devise
, but I didn't have to include thedevise
gem in the Gemfile. Feel free to check out the project: github.com/risafj/demo-for-devise-...I had a fresh copy of the api installed using ruby
2.5.0
. If I remove the devise gem, the auth breaks lol I know this is weird. I'll upgrade both ruby and rails and try again. But yea, I believe something weird is happening with my setup.Thanks.
To update. Another fresh installation with ruby
2.7.0
and Rails6.0.2.1
and all is well (production). Weird, I know. πHmm... we may never find out why π Glad itβs working now though! Thanks for the update!