From 44d7c3e1afc8f596a21a84360b4d01c46adffceb Mon Sep 17 00:00:00 2001 From: jgbarr Date: Thu, 16 Feb 2012 13:29:44 -0800 Subject: [PATCH] debugging on heroku --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 9f9201d..899285b 100644 --- a/app.rb +++ b/app.rb @@ -48,8 +48,8 @@ def current_user puts "AUTH WAS:: #{auth}" user = User.first_or_create({ :uid => auth["uid"]}, { :uid => auth["uid"], - :name => auth["user_info"]["name"], - :nickname => auth["user_info"]["nickname"], + :name => auth["user_info"]["screen_name"], + :nickname => auth["user_info"]["screen_name"], :created_at => Time.now }) session[:user_id] = user.id redirect '/all'