> Thanks Jeremy, > > Changing the name of the association fixed the problem I was having > but it renders the association useless. Is there a way to tell the > association what field to look for in the target table? In other > words can I have foreign key fields that have names without _id at the > end?
As mentioned in the documentation: many_to_one :lab, :key=>:whatever_the_foreign_key_column_is_named Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
