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
source to share