标签: ruby-on-rails rubygems devise-token-auth
我正在使用devise auth令牌在Rails应用程序中进行身份验证,并且我想在响应的标头中返回uid,client和access-token
def custom_registration_function new_user = User.new(....) if(new_user.save) // here i want to return the header to the response end end