Connecting Tech Pros Worldwide Help | Site Map

adding dynamic fields to a model ...

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 17 '07
Hi, here i describe my problem:

mi application must allow 2 basic issues:

first: the users may be able to create 'people' (this would be a model with a scaffold, and is not an issue, the problem comes with requierement #2)

second: the users should be able to add new fields to that model, for example: the model 'person' may have 2 fields, let say: 'name' and 'age', the basic idea is to give the user the ability to create new fields like 'sex' and 'occupation' if he like to do so, i wouldn't like to do ALTER TABLE to solve this .... any idea will be most welcome ... thanks
Reply


Similar Ruby / Ruby on Rails bytes