Pass constant value to model, not string. Conversion from string to constant value should be done at the controller level. The controller is the only place where we know what kinds of strings are accepted in URLs.