我是 ruby-on-rails 的新手,并试图将以下 form_tag 重构为 simple_form_for 代码,但在日志中出现了一个奇怪的错误:
"customers_customers_customers_path' no methods found.
知道代码的哪一部分是错误的吗?
<%= form_tag projects_path, :method => 'get', :id => "ajax_search_form" do %>
...
<% end %>
我将其重构为:
<%= simple_form_for @projects, :html => { :id => 'ajax_search_form' }, :method => 'get' do |f| %>
...
<% end %>
我究竟做错了什么?