Hello!

I need some help with self referential habtm associations:

I have a table inscripted and an inscripted may have a dependant, that works
ok with this
has_and_belongs_to_many :all_friends,
:class_name => "Inscrito",
:join_table => "related_inscritos",
:foreign_key => "related_inscrito_id",
:association_foreign_key => "main_inscrito_id"

i have related_inscritos table to save the association.
But now I need to add a type of relation for each association, does anyone
know how to do this??

Please any help will be very useful!!

Thanks
-- 
Felipe Vergara Contesse
IngenierĂ­a Civil Industrial UC

--~--~---------~--~----~------------~-------~--~----~
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