这是我的路线:
match '/goods_ins/autocomplete/autocomplete_supplier_suppliername', :controller => 'goods_ins'
match '/goods_ins/autocomplete/autocomplete_partcode_partcode', :controller => 'goods_ins'
get 'autocomplete_partcode_partcode', :controller => 'goods_ins'
get 'autocomplete_supplier_suppliername', :controller => 'goods_ins'
这是我的自动完成字段:
<div class="field">
<%= f.label "Supplier Name" %><br />
<%=f.autocomplete_field :suppliername, :autocomplete => autocomplete_supplier_suppliername_path %>
</div>
当我在该字段中输入内容时,我在终端中收到此错误:
ActionController::RoutingError(未初始化的常量 GoodsIns):