Skip to content

Commit

Permalink
tested and corrected libraries create
Browse files Browse the repository at this point in the history
  • Loading branch information
CBElizabeth committed Apr 19, 2015
1 parent 5b2975f commit 50063e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/libraries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ def index

def show
all_games = Library.find_by(bgg_username: params[:id]).games
puts all_games.to_json
render json: all_games.to_json
end

def create
bgg_user = params(:bgg_username)
bgg_user = params[:bgg_username]
response = BggApi.new.collection({ username: bgg_user })
if response.keys[0] != "error"
UsersFetcher.perform_async(bgg_user)
Expand Down

0 comments on commit 50063e6

Please sign in to comment.