On Mar 14, 2011, at 1:52 PM, Arthur Baldwin wrote: > I'm trying to create 3 tables: > > countries > regions > employees > > countries should have a one to many relationship with regions > and there should be a dropdown for regions AND countries on the view and edit > screens for employees > > when I tried to add: > > belongs_to country > belongs_to region > > to the employee.rb "model" then hobo g migration crashes with quite a few > error messages. I'm not really surprised, since I'm sure this is the wrong > way to do this...but what is the right way?
This looks reasonable, or at least shouldn't *crash*. Can you post the error messages that occur? Does a migration get generated at all, or does it blow up before that part? --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
