Tag: autocomplete

如何使用jquery-Tokeninput和Acts-as-taggable-on

这是您使用jQuery Tokeninput和ActsAsTaggableOn自动完成的方式 。 在我的情况下,我使用嵌套的forms,但它不重要。 以下所有内容都是有效的代码。 码 产品型号: attr_accessible :tag_list # i am using the regular :tag_list acts_as_taggable_on :tags # Tagging products 产品控制器: #1. Define the tags path #2. Searches ActsAsTaggable::Tag Model look for :name in the created table. #3. it finds the tags.json path and whats on my form. #4. it is detecting the attribute […]