Displaying 1 result from an estimated 1 matches for "defaultproc".
Did you mean:
default_proc
2006 Feb 02
1
circular table refs in activerecord
...his: when a document comes in, it''ll be
coded with the initials, and that''ll be used to determine who, if
anybody, is the default processor.
I cannot figure out how to make activerecord understand this.
class User < ActiveRecord::Base
has_many :default_procs
.....
class DefaultProc < ActiveRecord::Base
belongs_to :user
has_one :default_proc, :class_name => ''User'', :foreign_key => ''default_proc_id''
...
Here''s the problem. When I load a user, I want a list of default procs.
In views/user/show.rhtml
<% if @user.user...