rails -> 2.3.8
ruby -> 1.8.7
在 auto_complete 插件安装后,我仍然有“未定义的方法 `auto_complete_for'”问题!
Andrey-Bezruks-MacBook-Pro:eyeonasia.stage wizeflux$ ruby 脚本/插件安装http://github.com/rails/auto_complete.git - 力量
svn: '/Users/wizeflux/Projects/ionasia/eyeonasia.stage/vendor/plugins' 不是工作副本
在/Users/wizeflux/Projects/ionasia/eyeonasia.stage/vendor/plugins/auto_complete/.git/中初始化空的 Git 存储库
警告:对于 github.com/rails/auto_complete.git,选项“深度”被忽略
来自 github.com/rails/auto_complete
* 分支 HEAD -> FETCH_HEAD
Andrey-Bezruks-MacBook-Pro:eyeonasia.stage wizeflux$
重新启动服务器后,我在 "auto_complete_for :listings, :name "-> undefined method `auto_complete_for' for #
最佳答案
尝试使用 git: 地址,也可以尝试不使用额外的 --force 和 svn 选项,看看它们是否导致了问题。
script/plugin install git://github.com/rails/auto_complete.git
关于ruby-on-rails - Rails auto_complete "undefined method ` auto_complete_for'"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3067080/