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.

Reply via email to