search for: subtypes_typ

Displaying 1 result from an estimated 1 matches for "subtypes_typ".

Did you mean: subtypes_types
2006 Mar 05
1
Help with Self-Referential HABTM
...etting a new entry from a form accepted. i should say here that the form is also submitting info for the join table too. So in my model I have: class Type < ActiveRecord::Base has_and_belongs_to_many :subtypes, :class_name => ''Type'', :join_table => ''subtypes_types'', :association_foreign_key => ''subtype_id'', :foreign_key => ''type_id'' Then in the form I have this (@subtype carries the detail of the a parent -- so this form is called by a link "create a new subtype from this type". NB eac...