I'm so close on the Ancestry integration for use in a menu. However, I
can't get hobo to save the parent/parent_id to the model when I save
it. Here is what I have in my view:
<extend tag="form" for="MenuEntry">
<old-form merge multipart>
<field-list: fields="name, post, parent">
<parent-view:>
<% @menu_entries = MenuEntry.all %>
<if test="&@menu_entries">
<select-menu options="&@menu_entries"/>
</if>
<else>
<select disabled><option>No Parents Available</option></
select>
</else>
</parent-view:>
</field-list:>
</old-form>
</extend>
The view is populated correctly and shows all the menu entries in the
DB in my drop-down, but it won't save them. I've also tried parent_id
instead of parent.
Is there something I can do in the controller to get this saved? I
can't figure out how to access the parent-view (or parent-id-view when
I try it instead) value in the controller or model for the save.
Thanks,
Joey
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.