search for: createsubtype

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

2006 Mar 05
1
Help with Self-Referential HABTM
...ype carries the detail of the a parent -- so this form is called by a link "create a new subtype from this type". NB each type can have many subtypes and belong to many types to -- hence needs to be many-many rather than a tree structure): <%= start_form_tag :action => ''createsubtype'', :id => @type %> <%= render_partial ''form'' %> # Gets all the info for the Type fields <%#= hidden_field(''type'', ''subtype_id'', "value" => @subtype.id) %> <%= hidden_field(''subtypes'',...