Using Hobo RC3 and have the following model

class Organization < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    name :string, :required, :unique
    facility  :string
    address :text
    city  :string
    state :string
    zip   :string
    phone :string
    timestamps
  end

  has_many :users, :accessible => :true

  has_one :primary_contact, :through => :users

  children :users
...

end

and I have   belongs_to :organization, :accessible => :true in the users.rb 
model

However the hobo g migration doesn't pick up the requirement for a 
primary_contact_id field in the table nor does the form try to create an 
input field for it.  I've tried adding the primary_contact_id to the list 
of fields but the auto generated form still doesn't create an input filed 
for it.  I know I could set it up all myself but I'm just wondering why 
Hobo isn't doing it automatically like a has_many

Bob

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/D5UF91irwdQJ.
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