标签: ruby-on-rails
我使用sunspot_autocomplete创建自动提示字段。当前代码如下所示。
sunspot_autocomplete
= autosuggest_text_field('dvd', 'title', search_index_path, 'dvd_title')
问题是,由于此搜索输入位于应用程序文件的标题上,因此在访问dvd页面时,我会看到其标题在输入中作为值放置。
有没有办法阻止这种情况?