How do I use errorSummary in my view, if the form is built using formBuilder?

I tried

```
echo $form -> errorSummary();

```

but it doesn't work.

Can it actually be used with formBuilder?

**EDIT:**

The form:

```
return array(
'activeForm' => array(
    'class' => 'CActiveForm',
    'id' => 'nameserver-form',
    'enableClientValidation' => true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
),
'showErrorSummary'=>true,
'showErrors'=>true,
'elements'=>array(
    'ip1_address'=>array(
        'type'=>'dropdownlist',
        'empty'=>''
    ),
    'ns1_nameserver'=>array(
        'type'=>'text',
        'maxlength'=>255,
        'size'=>25
    )
)
);

```