#677 open
Bryan Larsen

select-one only works with belongs-to

Reported by Bryan Larsen | March 27th, 2010 @ 03:00 PM | in Hobo 1.4

If organizations is a has-many, this simple code snippet does not work:

<organizations-view:>
  <repeat>
    <input/>
  </repeat>
</organizations-view:>

The first failure is on type_and_field. If that's bypassed, the input tag does not properly select an appropriate input. If you explicitly choose select-one, it doesn't work. One is forced to essentially build your own input using select-menu

Comments and changes to this ticket

  • Matt Jones

    Matt Jones March 29th, 2010 @ 08:48 PM

    Not sure how this would work, even if it was possible - what would the desired params array look like? I'd typically drop a select-many on this case, but I suppose you could try somehow sending an array to organization_ids (one of the little-known has_many methods).

    Bonus points for actually making something better than overwriting happen when a user picks the same value twice in the array of select-ones...

  • Matt Jones

    Matt Jones September 14th, 2011 @ 09:59 PM

    • State changed from “new” to “open”
    • Milestone set to Hobo 1.4
    • Milestone order changed from “0” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Pages