Hi, I have these 3 tables which link together. I have used "has_many" as opposed to "has_and_belongs_to_many" as the linking table itself has an attribute "amount".
Is it possible to have an ActiveScaffold view for creating an Automatch item, where within this view one can create the automatch_business_item & link it to the "automatch" item in the same form? Current the view I have seems to allow creating the 1st level down (creating the automatch_ai_allocation), however in this sub-form it has a drop down list of "automatch_business_items" (i.e. with no ability to create an "automatch_business_item"). ................................................................................................. # Table name: automatches # # id :integer(4) not null, primary key # regex :string(255) not null # class Automatch < ActiveRecord::Base has_many :automatch_ai_allocations has_many :automatch_business_items, :through => :automatch_ai_allocations ................................................................................................. # Table name: automatch_ai_allocations # id :integer(4) not null, primary key # automatch_id :integer(4) not null # automatch_business_item_id :integer(4) not null # amount :decimal(9, 2) # class AutomatchAiAllocation < ActiveRecord::Base belongs_to :automatch belongs_to :automatch_business_item ................................................................................................. # Table name: automatch_business_items # id :integer(4) not null, primary key # description :string(255) not null # class AutomatchBusinessItem < ActiveRecord::Base has_many :automatch_ai_allocations has_many :automatch_bi_allocations ................................................................................................. Regards Greg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
