Ruby on rails Rails简单表单错误:没有将符号隐式转换为整数
我有一个rails 4应用程序,具有简单的表单和引导 我有一个表单,其中有两个字段,如下所示:Ruby on rails Rails简单表单错误:没有将符号隐式转换为整数,ruby-on-rails,twitter-bootstrap,simple-form,Ruby On Rails,Twitter Bootstrap,Simple Form,我有一个rails 4应用程序,具有简单的表单和引导 我有一个表单,其中有两个字段,如下所示: <%= f.input :type, 'What sort of equipment or materials are you seeking?' %> <%= f.input :description, 'What are your project requirements for the equipment or materials?' %> 当我尝试查看表单时
<%= f.input :type, 'What sort of equipment or materials are you seeking?' %>
<%= f.input :description, 'What are your project requirements for the equipment or materials?' %>
当我尝试查看表单时,我得到一个错误,它说:“没有将符号隐式转换为整数)
我没有任何数组似乎是其他人问题的主题。有人知道问题出在哪里吗
谢谢第二个参数是散列,而不是字符串。如果希望字符串成为标签:
<%= f.input :type, { label: 'What of equipment or materials are you seeking' } %>