So i'm tooling around with merb today and I created a model with an Enum type. How do i use this in a form? I thought it be as easy as this class Blah property :type, Enum[:normal, :big, :small] end
...ERB.... <% form_for @blah do %> <% radio_group :type %> <% end =%> Another way to phrase this question is, how do I get the list of possible Enum values so i can go <% radio_group :type, my_enum_values %> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
