Dice in rails