我正在使用 lasted simple_form
gem 并遵循 simple_form 表单渲染错误:
cant`t convert Symbol into String
= 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
视图和Student
:https ://gist.github.com/ccbef8a0fb67a164efee
我的 Gemfile:https ://gist.github.com/00ec5a897a6cb88e0bab
gem github页面上的问题:https ://github.com/plataformatec/simple_form/issues/695#issuecomment-10495237
导轨:3.2.8
SF:2.0.3
如何解决?