#716 ✓resolved
c.apolzon

View Hints unexpected behavior when passing multiple children directives

Reported by c.apolzon | May 3rd, 2010 @ 01:28 AM | in Hobo 1.3 (Rails 3)

If you pass two children directives to a View Hint class (incorrectly) as so:
children :assoc1s
children :assoc2s

The output HTML "mixes and matches" the two associations. The built breadcrumb uses the first association, but the rendered HTML in the content section comes from the second association.

Obviously not a pressing bug, as the correct syntax is children :assoc1s, :assoc2s

Comments and changes to this ticket

  • Matt Jones

    Matt Jones September 14th, 2011 @ 10:31 PM

    • State changed from “new” to “open”
    • Milestone set to Hobo 1.3 (Rails 3)
    • Milestone order changed from “0” to “0”
  • Matt Jones

    Matt Jones September 20th, 2011 @ 06:14 PM

    • State changed from “open” to “resolved”

    Looks like this was related to the old-style viewhints code in 1.0. In 1.3, execution of children is held until the value is actually read, so two calls in a row will result in the first being entirely overwritten.

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