Hello,
Let say i have this scenario:
Company
has_many: users
User
belongs_to: company
belongs_to :company, :foreign_key => 'regional_company_id'
On my controller i have:
columns[:regional_company_id].label = "Associated to company"
columns[:company].label = "Company"
config.columns[:company].form_ui = :select
config.columns[:regional_company_id].form_ui = :select
In this case every user has his own company, and is associated to a
regional company.
How do i get the "regional_company_id" to be filled with companies
when
i'm about do add a new user?
Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---