Forum: Ruby on Rails Array of strings for select input - how to display it later?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Szymon N. (Guest)
on 2006-03-03 12:30

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.
This topic is locked and can not be replied to.