search for: xxxsingle_access_tokenxxx

Displaying 1 result from an estimated 1 matches for "xxxsingle_access_tokenxxx".

2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
...single access token. I''ve been very thorough in looking through the documentation, but I must be missing something. What is it that I''m neglecting? class UsersController < ApplicationController def update # params[:user_credentials].inspect shows the correct ''xxxSingle_Access_Tokenxxx'' user_hash = RegisteredUserSession.find.record user = RegisteredUser.find(user_hash) user.update(params[:user]) user.save respond_to do |format| format.json { head :ok } end end private def single_access_allowed? true end end class User...