3
我已經安裝了JWT寶石 - https://github.com/progrium/ruby-jwt 當然,還有gem 'jwt'
Gemfile
。 Inspite上,我有未初始化的寶石常數
uninitialized constant HomeController::JWT
的錯誤HomeController
class HomeController < ApplicationController
def method1
@jwt_token = JWT.encode({.... })
end
end
我怎麼知道在將來我是否需要或不需要? –
對不起,我不知道我可以做正義的問題。如果你在你的配置目錄中徘徊,你可能會感覺到爲什麼不需要其他文件。希望有所幫助。 – Geoff