From 62780a89fb04e1d96c3bbc8c8dd2db9efdc656f1 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Thu, 24 Apr 2014 13:27:08 -0400 Subject: Added get_riot function which to gather, score, and place members in their proper blue/purple teams. Also changed the user view so that once the remote_username for League of Legends was added the button would be removed (since we are only supporting league for the remote_usernames right now) --- app/controllers/users_controller.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/controllers/users_controller.rb') diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bbc6ef3..27b3c61 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -64,10 +64,7 @@ class UsersController < ApplicationController game = Game.find_by_name(game_name) remote_username = HTTParty.get("https://prod.api.pvp.net/api/lol/na/v1.3/summoner/by-name/#{user_name.downcase}?api_key=ad539f86-22fd-474d-9279-79a7a296ac38") - puts "#{user_name}" - id = "#{remote_username["#{user_name.downcase}"]["id"]}".to_i - username = "#{remote_username["#{user_name.downcase}"]["name"]}" hash = {:username => username, :id => id} -- cgit v1.2.3-2-g168b