public function generateSelectField($attr)
    {
        if (empty($attr['name'])) {
            return '';
        }

        $options = array();

        if (! empty($attr['options'])) {
            $options = $attr['options'];
        }
        $options = $this->generateSelectOptions($options, $attr);

        unset($attr['options'], $attr['type'], $attr['selected']);

        return $this->Html->tag('select', $attr, $options, true);
    }