Google 建议并在 Rails 应用程序中使用 jquery/ajax 自动完成
我想获得一些在 Rails 应用程序中使用 Jquery 的参考。 目前,我一直在寻找在文本框中启用谷歌建议和在Rails应用程序中自动完成的东西。任何帮助/建议/参考都会有很大帮助。
I would like to get some ref to use Jquery in Rails app.
At the moment, I am stuck to find the things to enable google suggest in text box and autocomplete in Rails app. Any help/suggestions/ref would be of great help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
今天早些时候,我对 Rails 的自动完成功能进行了简短搜索,这些是我找到的最佳链接:
编辑:我刚刚在我的应用程序中实现了第一个链接,到目前为止工作完美。不过,我在文档方面遇到了一些小问题,这对我有用(在第二个字符后键入 AutoComplete 时):
名为 Category 的模型,有一个属性名称:
控制器:
路由:
视图:
I did a short search on auto-complete with Rails earlier today and these are the best links I found:
Edit: I just implemented the first link in my app, works flawless so far. I had minor problems with the documentation though, this works for me (on typing AutoComplete starts after the second character):
Model named Category, has an attribute name:
controller:
routes:
view: