Edit form for has_many

20 views
Skip to first unread message

Bob Sleys

unread,
Jan 9, 2012, 10:50:27 AM1/9/12
to hobo...@googlegroups.com
When editing record that has a has_many association hob automaticly generates a sub form allowing the user to add multiple records.  Is there some way to edit this form?

IE if I add to the Users model a has_many :licences and the licence model has multiple fields I'd like to modify the form to add licences to a user when editing the users record.

Bob

Bryan Larsen

unread,
Jan 9, 2012, 10:55:09 AM1/9/12
to hobo...@googlegroups.com
I assume you're on the no-prototype branch.

Do the normal mechanisms not work? For example:

<field-list: fields="name,email,licenses">
<licenses-view:>
<input-many>
<field-list fields='key'/>
</input-many>
<licenses-view:>
</field-list:>

> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/vZK_oHbF3JgJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Bob Sleys

unread,
Jan 9, 2012, 2:37:03 PM1/9/12
to hobo...@googlegroups.com
I'm sure it does.  I'm just being dense again.  Makes perfect sense when you spell it out LOL.
Reply all
Reply to author
Forward
0 new messages