g0nzo
2006-Mar-03 10:30 UTC
[Rails] Array of strings for select input - how to display it later?
Hi! 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 view: <%= @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. -- Posted via http://www.ruby-forum.com/.