On Aug 11, 2009, at 11:43 AM, insect wrote:

>
> Hello!
>
> I am looking for a plugin or at least the way how to realize dynamic
> fields in a model.
>
> Why I need: I want to create a product catalog application, each type
> of product can have different set of fields (e.g. computer, mobile
> phone, vacume cleaner and etc.).
> Requirements:
>   1. Set of fields with types can be defined from admin panel foreach
> product type
>   2. Validation should be presented
>   3. It should be possible to sort and filter on this fields
>   4. It should be possible to auto-generate forms for products
>
>
> All plugins that i found does not give me this functionality.
>
> Who can advise me something or point to a plugin?

I don't know about autogeneration of forms, but it seems to me that  
what you want is a polymorphic association, where you have a model  
that contains common attributes, and specific models with a specified  
set of attributes.
Does this answer your question ?

   ngw

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

Reply via email to