This snippet of code causes the following error:
$form->get_field('name')->add_container_attributes( class =>
'hidden' );
Caught exception in
SK::Catalyst::CityCondo::Controller::Structure::Community::Article->article_structure_summary_edit
"Can't use string ("class") as a HASH ref while "strict refs" in use at
/usr/local/share/perl/5.10.1/HTML/FormFu/Attribute.pm line 173."
This snippet of code works as expected.
$form->get_field('name')->add_container_attributes( {class =>
'hidden'} );
The documentation for add_attributes in HTML::FormFu implies that both
syntaxes are equivalent.