views:

4

answers:

0

If I need to create a model which will have several fields coming in from other tables and I want the field values to be dynamic so that users can add more values just like tags.Is there Any Plugin or method to handle all this in a good way rather than coding it in

For example if I have a table of cars, I might have fields in it named car_make_id, car_model_id and car_color_id. These fields bring in values from the tables car_makes, car_models & car_colors respectively. Now, this is all fine but if i need to add several more dynamic fields like these I will have to keep adding more tables and it will be a laborous task to do so. Is there anything out there in Rails that can help me simplify this so that I can add such fields easily

P.S I need to make the fields work as sphinx attributes as well