标签: ruby-on-rails ruby-on-rails-4 coffeescript erb named-routing
我有
$.post "<%=order_topics_path%>", {id_order: arr}, (data, textStatus, jqXHR) ->
出现错误
Home#index中的NameError #### x0000000da4bef8>的未定义局部变量或方法`order_topics_path'
路线仍然存在
它定义为
resources :topics do post :order, on: :collection