2012-01-24 22 views
0

我使用的設計1.5.3與3.1.3軌,紅寶石192而言,我下面這個教程:http://ecuadoronrails.org/creando-un-sistema-de-autenticacion-de-usuarios-en-ruby-on-rails/#more-186date_select不顯示在軌

在我的意見我:

<div><%= f.label :fecha_de_vencimiento %></br> 
    <%= f.date_select(:fecha_vencimiento, :start_year => 1901, :end_year => 2011, :include_blank => true) %> 

但是當我去的http://本地主機:3000 /用戶/ sign_up

我得到一個文本框與標籤像任何其他領域......不是DAT e_select字段

什麼即時做錯了?我需要安裝任何寶石嗎?

回答

1
在我的配置/區域設置/ en.yml

month_names:[〜,Enero,Febrero,馬索,阿布里爾,梅奧,JUNIO,胡里奧,阿岡斯托,Septiembre,OCTUBRE,Noviembre,DICIEMBRE]

0

我不是百分之一百確定,但你試過嗎?

<%= f.date_select :fecha_vencimiento, {:start_year => 1901, :end_year => 2011, :include_blank => true} %> 
+0

nop,當我填寫表單並嘗試sign_i我得到:ActiveRecord :: MultiparameterAssignmentErrors in Devise :: RegistrationsController#create – suely