Hi, I’m still waiting on my Agile Rails book to arrive - in the
As an exercise I’m making a Help Desk application.
If I have a Problems table with two foreign keys to a People table, how
do I set up my models, problems_controller list method, and then simply
display, say my problem submitter person? Here is what I have so far:
Problems table with columns:
submitter_id (foreign key to People id)
assigned_to_id (foreign key to People id)
People table with columns:
class Problem < ActiveRecord::Base
has_many :people ???
class Person < ActiveRecord::Base
@submitter = Person.find(params[:submitter_id] ???