Owen got it sorted. It was the permissions on task_assignment.rb. It had the defaults of "acting_user.administrator?" I changed this to "true" so that anyone can create, update or delete on the task_assignment model and the user selection now appears. I didn't see any mention in the tutorial though to modify the permissions in task_assignment.rb?
Regards, Kent Georgeson On Tuesday, 22 February 2011 at 11:29 PM, Owen Dall wrote: > Which version of Hobo prerelease lease are you using? > > Thanks, > > Owen > > On Tue, Feb 22, 2011 at 7:32 AM, Kent <[email protected]> wrote: > > I cannot get the User Associations to work as per the Rapid-Rails-With- > > Hobo book on page 200. The user field does not display on the tasks > > edit form. I still only get the Name field. Any advice on how to > > troubleshoot? I am running this in V1.3 against Rails 3.0 > > > > My models are as follows: > > > > tasks.rb > > ------------------ > > fields do > > name :string > > timestamps > > end > > > > belongs_to :requirement, :index => 'requirement_task_index' > > has_many :task_assignments, :dependent => :destroy > > has_many :users, :through => :task_assignments, :accessible => > > true > > > > children :users > > > > task_assignment.rb > > ---------------------------- > > fields do > > timestamps > > end > > > > belongs_to :user, :index => 'assignment_user_join_index' > > belongs_to :task, :index => 'assignment_task_join_index' > > > > user.rb > > ---------------------- > > fields do > > name :string, :required, :unique > > role enum_string(:Coordinator, :Analyst, :Developer, :Tester) > > email_address :email_address, :login => true > > administrator :boolean, :default => false > > timestamps > > end > > > > has_many :task_assignments, :dependent => :destroy > > has_many :tasks, :through => :task_assignments > > > > children :tasks > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Hobo Users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/hobousers?hl=en. > > > > > > > -- > > > - Owen > > Owen Dall, Chief Systems Architect > Barquin International > www.barquin.com > Cell: 410-991-0811 > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
