I have a Profile
model, that has a height
attribute.
I need to store the height of users (aka profiles), but I am not quite sure how to do it. I assume the best way to do it is to have a select dropdown broken down in inches (i.e. 4'0", 4'1"...6'5", etc.). But I am not quite sure the best way to store this in the db.
I would assume it is simplest to just store inches, but if I do how do I present the height in my select in the format I specified above.
Right now, I just have an integer field:
<%= f.input_field :height, placeholder: "176", class: 'col-lg-9 form-control' %>