From 68f3437f8d5c56af0c9473eae50e7809ed8ab7f8 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 29 Nov 2012 20:58:24 +0100 Subject: [PATCH] add remote debugging --- app/views/layouts/phone.html.slim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/phone.html.slim b/app/views/layouts/phone.html.slim index 6a10cf50..54a4a76d 100644 --- a/app/views/layouts/phone.html.slim +++ b/app/views/layouts/phone.html.slim @@ -44,10 +44,12 @@ html lang="en" setLocale: function(locale){$locale = locale; return locale}, token: function(){return this.auth_token}, setUserId: function(id){ this.stored_user_id = id}, - user_id: function(){return this.stored_user_id } + user_id: function(){return this.stored_user_id }, + log: function(str){console.log(str)} }); #{Rails.env.production? ? '' : %|QMobile.setAuthToken('#{current_user.authentication_token}');QMobile.setUserId('#{current_user.id}');|} + QMobile.log('token: '+QMobile.authentication_string()+' user_id:'+QMobile.user_id()+' ===================================================================='); body class=action_name .navbar.navbar-fixed-top