sorry, the correct code is

% $self->param(enable =>  $enable);
> <%= check_box enable => 1 %> Enable


Четвер, 13 лютого 2014 р. 23:23:58 UTC+2 користувач Vyacheslav Biruk 
написав:
>
> Hi,
>
> How can I generate a checkbox with the checked state, when the form is 
> displayed for the first time (params  not yet defined) ?
>
> Now I'm doing it this way: 
>
>> % $self->param(enable =>1) if defined $enable;
>> <%= check_box enable => 1 %> Enable
>
>
> but I think that this is not the right solution.
>
> PS. Excuse me my bad english.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to