[html-formfu] Re: Radiogroup problem
ivorw
ooe5-kj0i at xemaps.com
Thu Jun 5 00:07:41 BST 2008
Sorted, thank you very much!
Looks as if we could do with a "use strict" for YAML files, and/or
perhaps better diagnostics from YAML and YAML::Syck.
Lance A. Brown wrote:
> ivorw wrote:
>> - type: Text
>> name: email_address
>> label: Email address
>> constraints:
>> - Email
>> - Required
>> # Added below causes a problem
>> - type Radiogroup
>> name: active
>> options:
>> - [ 0, 'Inactive' ]
>> - [ 1, 'Active' ]
>> - [ 2, 'Suspended' ]
>
> Typo alert: You're missing a colon ":" after the 'type' token on the
> RadioGroup line.
>
>> [error] Caught exception in RockBase::Controller::Admin->user "Can't
>> locate object method "options" via package "HTML::FormFu::Element::Text"
>
> The error indicating it can't find an 'options' method on a
> ...::Element::Text led me to the typo.
>
> --[Lance]
More information about the HTML-FormFu
mailing list