title: Problem in Rails scaffold for DATE fields
body: <p>When I use Rails scaffold, I can't access the page to edit fields. It shows me some kind of problem with all DATE fields. Here's the error:</p>
  
  <pre><code>can't convert Symbol into String
  
  Extracted source (around line #124):
  
      121:   &lt;/p&gt;
      122:   &lt;p&gt;
      123:     &lt;%= f.label :dataDeCadastro %&gt;&lt;br /&gt;
      124:     &lt;%= f.date_select :dataDeCadastro %&gt;
  </code></pre>
  
  <p>And part of the stackTrace:</p>
  
  <pre><code>/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/date_helper.rb:564:in `include?'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/date_helper.rb:564:in `select_date'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/date_helper.rb:832:in `to_date_select_tag_without_error_wrapping'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/active_record_helper.rb:268:in `to_date_select_tag'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/date_helper.rb:179:in `date_select'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/date_helper.rb:889:in `date_select'
  app/views/usuarios/edit.html.erb:124
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:313:in `fields_for'
  /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:253:in `form_for'
  app/views/usuarios/edit.html.erb:3
  </code></pre>
  
  <p>And the model sql:</p>
  
  <pre><code>CREATE TABLE `usuarios` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `usuario` varchar(50) DEFAULT NULL,
    `recebeNews` smallint(1) DEFAULT NULL,
    `cidade` varchar(30) DEFAULT NULL,
    `email` varchar(40) DEFAULT NULL,
    `endereco` varchar(70) DEFAULT NULL,
    `estado` varchar(3) DEFAULT NULL,
    `cep` varchar(10) DEFAULT NULL,
    `numero` varchar(10) DEFAULT NULL,
    `telefone` varchar(30) DEFAULT NULL,
    `cnpj` varchar(20) DEFAULT NULL,
    `cpf` varchar(18) DEFAULT NULL,
    `inscricaoEstadual` varchar(20) DEFAULT NULL,
    `rg` varchar(15) DEFAULT NULL,
    `complemento` varchar(70) DEFAULT NULL,
    `sexo` varchar(1) DEFAULT NULL,
    `bairro` varchar(70) DEFAULT NULL,
    `telefoneResidencial` varchar(10) DEFAULT NULL,
    `dddTelefoneCelular` varchar(2) DEFAULT NULL,
    `dddTelefoneComercial` varchar(2) DEFAULT NULL,
    `dddTelefoneResidencial` varchar(2) DEFAULT NULL,
    `ramalDoTelefoneComercial` varchar(10) DEFAULT NULL,
    `telefoneCelular` varchar(10) DEFAULT NULL,
    `telefoneComercial` varchar(10) DEFAULT NULL,
    `creditoPessoal` smallint(1) DEFAULT NULL,
    `descontoPessoal` smallint(1) DEFAULT NULL,
    `motivoDoBloqueio` varchar(255) DEFAULT NULL,
    `nomeNaReceitaFederal` varchar(255) DEFAULT NULL,
    `valorDoCreditoPessoal` double DEFAULT NULL,
    `valorDoDescontoPessoal` double DEFAULT NULL,
    `bloqueio` smallint(1) DEFAULT NULL,
    `dataDeCadastro` datetime DEFAULT NULL,
    `dataLimiteDoDescontoPessoal` datetime DEFAULT NULL,
    `situacaoNaReceitaFederal` varchar(255) DEFAULT NULL,
    `dataDeNascimento` datetime DEFAULT NULL,
    `senha` varchar(255) DEFAULT NULL,
    `interior` smallint(1) DEFAULT NULL,
    `observacao` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `email` (`email`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5754 DEFAULT CHARSET=latin1 ;
  </code></pre>
  
  <p>full view source:</p>
  
  <pre><code>&lt;% form_for(@usuario) do |f| %&gt;
  &lt;%= f.error_messages %&gt;
  
  &lt;p&gt;
    &lt;%= f.label :usuario %&gt;
    &lt;%= f.text_field :usuario %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :cpf, "CPF" %&gt;
    &lt;%= f.text_field :cpf %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :rg, "RG" %&gt;
    &lt;%= f.text_field :rg %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :cnpj, "CNPJ" %&gt;
    &lt;%= f.text_field :cnpj %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :sexo, "Sexo" %&gt;&lt;br&gt;
    &lt;%= f.radio_button :sexo, :M %&gt;M&lt;br&gt;
    &lt;%= f.radio_button :sexo, :F %&gt;F
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :dataDeNascimento, "Data de Nascimento" %&gt;
  
    &lt;%= f.date_select :dataDeNascimento %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :endereco %&gt;
    &lt;%= f.text_field :endereco %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :cidade, "Cidade" %&gt;
    &lt;%= f.text_field :cidade %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :estado, "Estado" %&gt;
    &lt;%= f.text_field :estado, :maxlength =&gt; "2" %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :cep, "CEP" %&gt;
    &lt;%= f.text_field :cep, :maxlength =&gt; "10" %&gt; (00000-000)
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :telefone, "Telefone" %&gt;
    &lt;%= f.text_field :telefone %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :email %&gt;
    &lt;%= f.text_field :email %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :senha, "Senha" %&gt;
    &lt;%= f.password_field :senha %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :senha_confirmation, "Confirmação da Senha" %&gt;
    &lt;%= f.password_field :senha_confirmation %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.label :recebeNews %&gt;&lt;br /&gt;
    &lt;%= f.check_box :recebeNews %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.submit "Enviar" %&gt;
  &lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>What could it be?</p>