Displaying 1 result from an estimated 1 matches for "colour_options".
2007 Nov 06
2
Valid options from hash
Which is the best way to create a thin key/value related to some
model? where a field only could insert those values (keys as 0,1) and
where could be showed the values (as Red, Blue) from a drop-list
COLOUR_OPTIONS = {0=>"Red", 1=>"Blue"}
t.string :colour
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39...