我已经安装了 JWT gem - https://github.com/progrium/ruby-jwt当然
有gem 'jwt'
。Gemfile
尽管如此,我有错误
uninitialized constant HomeController::JWT
在HomeController
class HomeController < ApplicationController
def method1
@jwt_token = JWT.encode({.... })
end
end