【发布时间】:2014-07-17 01:04:24
【问题描述】:
我在代码中做错了什么导致 select2 在下面的行为如此奇怪?
1) 我希望表单在此处的示例中看起来应该如此,而不是我所拥有的。 例子: http://ivaynberg.github.io/select2/index.html#basics
2) 我希望数据正确 POST 并保存,但它没有保存到数据库中。
(请右击,然后选择“查看图片”放大阅读。)
我已按照 select2 API 说明进行操作。 https://github.com/argerim/select2-rails
问题是来自 gem 冲突、引导程序冲突还是我正在使用的 rails 表单助手?
我也查看了这些线程,但我无法找出解决方案。
preloading external json into select box then after search getting specific results
【问题讨论】:
标签: ruby-on-rails forms api autocomplete select2-rails