Uninitialized gem constant
I installed the JWT gem - https://github.com/progrium/ruby-jwt
Of course there is gem 'jwt'
in Gemfile
. Regardless, I have an error
uninitialized constant HomeController::JWT
in HomeController
class HomeController < ApplicationController
def method1
@jwt_token = JWT.encode({.... })
end
end
+3
Alan coromano
source
to share
1 answer
I believe what you need require 'jwt'
.
NTN
+2
Geoff
source
to share