After a proper test, I noticed that the selected values were not
actually saved. The input tag name was wrong and I have not been able
to correct it. So I have rewritten the tag as below, which seems to
work now:
<def tag='input' for='TimeZone' attrs='priority-zones, first-option,
first-value'><%
priority_zones ||= {}
selected = this || "Bern"
%>
<select name='#{param_name_for_this}' merge-attrs>
<option value='#{first_value}' unless='&first_option.nil?'><first-
option/></option>
<%= time_zone_options_for_select(selected, priority_zones) %>
</select>
</def>
Thanks again!
On 23 Mai, 13:37, ChrisBee <[email protected]> wrote:
> Thank you very much!!! This works like a charm!
>
> --
> 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
> athttp://groups.google.com/group/hobousers?hl=en.
--
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.