Created
September 2, 2014 22:16
-
-
Save anonymous/d138a4f2c76bb4b32dd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GameController < ApplicationController | |
include DecisionHelper | |
def create | |
@game = Game.new(game_params); | |
logger.debug "cards" | |
logger.debug @game.cards | |
logger.debug @game.cards.size() | |
logger.debug "players" | |
logger.debug @game.players | |
@game.prepare (@game.player_number) | |
render 'show' | |
end | |
private | |
def game_params | |
params.require(:game).permit(:small_blind, :big_blind, :player_number, :commit) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment