search for: assigned_to_id

Displaying 2 results from an estimated 2 matches for "assigned_to_id".

2006 Feb 03
1
Database Foreign Key - Basic question
...roblems 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: id description submitter_id (foreign key to People table) assigned_to_id (foreign key to People table) etc People table with columns: id name models: class Problem < ActiveRecord::Base has_many :people class Person < ActiveRecord::Base has_many :problems problem_Controller: def list @submitter = Person.find(params[:submitter_id] ??? views:prob...
2008 Jul 15
9
Beginner Question.
I''m just getting into RoR, coming from a long PHP background. So far I LOVE IT! I''m hitting a roadblock with updating my mysql database. For simplicities sake, I have 2 tables and here are the relevant columns. Table Users id name email Table Issues id createdby assignedto reportedby In my models I have everything mapped properly I believe. When I try to update the