I’ve prepared simple array in my model
(i.e. TYPE = [[“very_long_string”, “vls”]…])
which i use for select input element in form.
If i choose “very_long_string”, “vls” is saved to database.
How to later read the whole string, not the shorter form? If i make in a
<%= @object.column %> i get “vls”.
BTW. Will (or does) rails support mysql ENUM data type? When i created a
table with this type, “rake db_schema_dump” didn’t work.