Re: [Rails] How do I make this relation?

2016-05-12 Thread James Jelinek (shakycode)
Benadryl will help with the allergies, Colin’s suggestions on following Rails conventions and naming your associations and classes will help with the code part. Good luck! Cheers, James Subscribe to my Youtube Channel: https://www.youtube.com/shakycode

Re: [Rails] How do I make this relation?

2016-05-12 Thread Colin Law
On 12 May 2016 at 19:28, Luis wrote: > I am trying to establish the following relation, but no joy! > > Can someone please tell me how should I do this. > Thanks. > Luis > #Sched attributes: > #id > #... > # pcp_id:integer > # admitingMd_id :integer > > > class Sched < ActiveRecord::Base

[Rails] How do I make this relation?

2016-05-12 Thread Luis
I am trying to establish the following relation, but no joy! Can someone please tell me how should I do this. Thanks. Luis #Sched attributes: #id #... # pcp_id:integer # admitingMd_id :integer class Sched < ActiveRecord::Base belongs_to :admitingMd, :class_name => "Pcp", :foreign_ke