matteomelani/Auth-Token-Service-Prototype — Issue #1: okens_controller.rb:41: invalid multibyte char (US-ASCII)
Author: muthhus
Created: 2012-01-24 14:57:52+00:00
State: open

HI Matt,

You have done wonderful jobs, also you provided the really good idea to modify the devise to handle the(https://github.com/plataformatec/devise/issues/1285) authentication token and also you provided the nice sample application.

when i was made a call from RESTCLIENT then i got the following error:

../app/controllers/api/v1/tokens_controller.rb:41: invalid multibyte char (US-ASCII)

../app/controllers/api/v1/tokens_controller.rb:41: syntax error, unexpected $end
render :status=>404, :json=>{:message=>”Invalid token.”}
^):

So found that "Double quotes issues" , i think you need to change the format @destroy in tokens_controller

Currently:
logger.info(“Token not found.”)
render :status=>404, :json=>{:message=>”Invalid token.”}

Need to change into:
logger.info('Token not found.')
render :status=>404, :json=>{:message=>'Invalid token.'}

Problem solved by changing the “Token & ”Invalid into as per the above.

Thanks