Having a bad day with table plus :/
I'm getting a 'can't convert string to integer'. Other posts mention a
possible problem with table plus and headings, but I've defined all
headings. The problem is with a child...
<index-page>
<heading:>My Events</heading:>
<collection: replace>
<table-plus fields="name, my_venue, *event_times.special_note, *
event_times.occurs_weekly.first">
<name-heading-link:>Event Name</name-heading-link:>
<my-venue-heading-link:>Venue</my-venue-heading-link>
*<event-times-special-note-heading:>Start
Date</event-times-special-note-heading:>*
<event-times-occurs-weekly-first-heading:>Weekly?</event-times-occurs-weekly-first-heading:>
</table-plus>
</collection:>
</index-page>
The fault appear to be with the 'special note'. If I take out the
'event_times.special_note' it works OK - the occurs_weekly child element is
OK, but the special_note causes the error. The event_times are a straight
has_many relationship with accessible true, and the special_note is just a
string.
Also, how do I reference the child variables? tried using an
if="&event_times.occurs_weekly?" and get an error undefined method
`event_times' for #<#<Class:0x3560768>:0x59c5b6c>
Thanks, Anthony.
--
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/-/wKxZ9J6eNDAJ.
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.