According to documentation, you don't need the end
in the jbuilder
template, just:
json.extract! @appuser, :user_auth_token, :id
Alternatively, if you are using a Ruby
version major than 1.9, you can use this syntax:
json.(@appuser, :user_auth_token, :id)