Hmm, well, could you put a method that handles the error that has_token? throws and tells the controller to redirect this exact error. something like this in your controller:
rescue_from OauthError::RecordNotFound, :with => :deny_access
then you can put
def deny_access
redirect_to your_view_path, :alert => "Too bad sucker"
end
- :
if complete_oauth_transaction.errors.present?
redirect_to your_view_path
else
end
. , , .