user input something simple to write
attributes in db use some complicated name to easy understand
several ways to solve this translation between user input and db objects
1) interpret user input to db objects at the level of user input leavel, maybe a name mapping?
2) update the attributes in the rails model
pp = case val.ucase
when ‘F’ then ‘female’
when ‘M’ then ‘male’