search for: assignee_id

Displaying 3 results from an estimated 3 matches for "assignee_id".

2006 Apr 06
4
using two foreign keys to the same table
i am working on a task manager with ruby on rails. it is my first major project, so i''m still gettng my feet wet as i learn. i''ve been trying to use the built in relationships to link my tables together, but i''m not able to use the same naming conventions. for each task, it has a field for the creator, and another field for the assignee. both of these fields
2006 Jun 27
2
how to use scope with acts_as_list
...different spots. i have one field for the creator of the task and another for the assignee. so in my Task model i have the following code: class Task < ActiveRecord::Base belongs_to :assignee, :class_name => ''User'', :foreign_key => ''assignee_id'' belongs_to :creator, :class_name => ''User'', :foreign_key => ''creator_id'' has_many :comments, :dependent => destroy validates_presence_of :title, :description, :date_due acts_as_list :scope => :assignee e...
2006 Jul 13
5
how to get to the parent of a child object.
Hi, i have a problem with the following: I have an application with patients <-->>consults models are ok in the view list_consults i do this: for consult in @consults%> <tr> <td><%= consult.patient.name %></td> <td><%= consult.reason %></td> <td><%= consult.date %></td> <td><%= link_to