I have models LabelSet and Label. LabelSet has_many labels; Label 
belongs_to LabelSet. 

LabelsController includes auto_actions_for :label_set, :create.

The form tag for LabelSet looks like this:

<extend tag="form" for="LabelSet">
  <old-form merge>
    <field-list: fields="&this.field_order" />
    <after-field-list:>
      <input-many:labels>
        <field-list: fields="text,x_coord,y_coord"/>
      </input-many>
    </after-field-list:>
  </old-form>
</extend>

(The input_many for labels is the interesting part.) As a form, this looks 
fine. However, on submission, I get:

ActiveRecord::AssociationTypeMismatch in LabelSetsController#update

Label expected, got Array


Now, this is Hobo 1.3, and while we have our eyes on bringing it up to 2.0, 
we've been blocked by the fact that we have a model elsewhere named Page 
which causes all kinds of havoc in Hobo. Is there any chance that Label is 
a similarly problematic model name? Or is there something else here I'm 
missing?

Thanks,

pjm

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to