I''m using single table inheritance. The values in the ''type'' field indicate the model names of the classes in the hierarchy. I have a separate attributes table that lists the fields used by each class in the hierarchy. My question is: when I display a form to edit a record in the STI table, how do I limit the fields shown in the form to those appropriate to objects of that class? I will get the list of approprate fields from my attributes table; but how do I tell the model to only display form fields for those attributes? Thanks, Peter -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---