I’ve installed JWT gem – https://github.com/progrium/ruby-jwt
There is gem 'jwt' in Gemfile, of course. Inspite on that, I have the error of
uninitialized constant HomeController::JWT
in HomeController
class HomeController < ApplicationController
def method1
@jwt_token = JWT.encode({.... })
end
end
I believe you need a
require 'jwt'.HTH