View:
<%=javascript_include_tag :defaults %>
Country: <%=text_field_with_auto_complete :country, :name %>
錯誤訊息是
undefined method `auto_complete_for' for #<TestautoController:
0x47293c8>
可是在railsAPI明明有提供這個method阿@@
請問有人有相同問題的經驗嗎?謝謝
正確:
class SearchController < ApplicationController
auto_complete_for :recipe, :name
end