看板 Ruby 關於我們 聯絡資訊
: 你要不要重裝rails看看? : 我這邊是直接用都沒問題 : 要不要看看你裝好的actionpack下有沒有auto_complete.rb? : 像我的就在 : ruby\lib\ruby\gems\1.8\gems\actionpack-1.13.3\lib\action_controller\macros : 有看到而且直接controller寫不會出現錯誤哩 : koji 我找到原因了@@ 因為我把auto_complete_for把在我的function裡,所以才會出錯 錯誤: class SearchController < ApplicationController def index auto_complete_for :recipe, :name end end 正確: class SearchController < ApplicationController auto_complete_for :recipe, :name end 謝謝你囉^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.126.86.154