Hi, I need to do a polymorphic association but i want to save the field XXX_type in an other table, like that :
Table: USERS - id - name Table: CITY - id - name Table: STATES - id - name Table: MANDATES - id - name - place_type = city or states Table: ELECTED - id - user_id - mandate_id - place_id -> id of CITY.id or STATES.id depending on MANDATES.place_type related by mandate_id How can I do that with rails ?? I hope you understood me, if not, tell me I can try to explain. Sorry for my english ! Adrien --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

