2012-11-18 14 views
2

我使用歷時simple_form寶石及以下simple_form形式呈現錯誤:爲什麼SimpleForm不適用於日期字段?

cant`t convert Symbol into String

enter image description here

= simple_form_for @student, html: { multipart: true, class: 'form-horizontal' } do |f| 
    = f.input :email, disabled: true 
    = f.input :birthdate 
    = f.input :address_number 
    = f.input :address_street 
    = f.button :submit, class: "btn btn-primary pull-right" 

# == Schema Information 
# 
# Table name: students 
# 
# address_number   :string(255) 
# address_postalcode  :string(255) 
# address_street   :string(255) 
# approved    :boolean   default(FALSE), not null 
# ask_counter    :integer   default(0) 
# authentication_token :string(255) 
# birthdate    :date 

這裏是edit觀點和Studenthttps://gist.github.com/ccbef8a0fb67a164efee

我的Gemfile:https://gist.github.com/00ec5a897a6cb88e0bab

發行寶石github上頁:https://github.com/plataformatec/simple_form/issues/695#issuecomment-10495237

Rails的:3.2.8 SF:2.0.3

如何解決呢?

回答

相關問題