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'