Ok, thanks for the advice,
The problem i have is that I want to use these strings in the Player
model, but also many other places. There's a statistics_controller thats
going to need it, and potentially other controllers / models that are
going to use the database of stats to decide things.
Not being a super-fluent Ruby developer, how do these symbols work?
if I declare : HAS_POSSESSION = 'player has possession' somewhere, does
this enable the symbol :has_posession, if so what's the point of using
the symbol, why don't i just use HAS_POSSESSION?
or is it that I don't need to declare anything, and I just use
:has_possession, which equates to "has possession", which seems odd!
Just to be clear, I've got a database of statistics, with an attribute
called action. This action describes what happened, ie one stat.action =
"player has possession", whereas another stat.action = "player was
tackled". It's these strings ("player has possession" / "player was
tackled") that I want to store in a list.