I've a requirement to put some user-managed attributes on a model. Essentially, I want Entity-Attribute-Value functionality - the administrator has the ability to create "fields" on the model, and to specify their type (datetime, string, boolean, decimal, etc). Then in the regular views, those fields are show in addition to all the normal fields from the model's table. This could work with a :has_many relationship; with the parent model having an overloaded "method missing" call to look for any members of the associated attributes that match called-for methods.
I could roll-my-own, but thought I'd look at any existing EAV options first; but have found thin pickings! There's a fork of "acts_as_eav_model" on Github [1] which allows for flexible attributes on models; and to my mind, "all" I need to do to have this do what I want is have some form of admin system to populate the :meta_columns hash with the user-declared options. But can anyone suggest any other options that might be worth considering? [1] http://github.com/dwg/acts_as_eav_model/ -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.