Bet Amount Validation

Using params[:player_bet].to_i with user input will set strings to 0
and since you must bet more than 0 and less than cash amount

if session[:player_bet] > 0 && session[:player_bet] <=
session[:player_cash]

will work to validate the input.