I am trying to switch from PHP to RoR. In my database, I have an
integer represent a string. So, for example, a row would have a 1, 2,
or 3. For example...
1 = Low
2 = Medium
3 = High
I do not have the Low/Med/High anywhere in the database; I just know
that in a row, 1 is low, 2 is medium, etc... In my view, when I
"show" a record, the record is shown as '1' when I use the
In PHP, I would just implement a 'case' statement depending on what
the number represents. I was wondering how I would do it in RoR?
Would I use a if statement in the view? Put something in the