Where did you handle with the attr name and player on this exemple?
def new_character(name, player) Character.new.tap do |character| stats_array = ["strength", "dexterity", "intelligence", "charisma"] points_pool = 9 max_roll = 6 roll_stats(character, stats_array, points_pool, max_roll) save! end end
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Where did you handle with the attr name and player on this exemple?