我有以下表格声明:
<%= semantic_form_for @contrat_line,
:url => url_for(:controller =>"/backend/orders/#{@contrat.id}/contrat_lines",
:action =>"create") do |f| %>
我想走以下路线:
POST /backend/orders/:order_id/contrat_lines(.:format) backend/contrat_lines#create
但是当我想显示表单时(甚至在使用它之前)出现以下错误:
No route matches {:controller=>"backend/orders/23/contrat_lines", :action=>"create"}
我会说这条路线存在,为什么说它不存在?