Ruby on Rails Thursday, July 29, 2010

David Kahn wrote:
> To populate from a static array or from AR.... I had the same quandry

According to the way I think, a model object is something you CURD
(create, update, read, or delete). Unless you're God you're not going to
be creating or deleting genders.

I'd go with a static enumeration (Male, Female or M, F or 0, 1). For the
sake of the "simplest solution that could possibly work," I'd go with
Male/Female. No added complexity in having to format the data for the
view.
--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment