的routes.rbRoR的路线错误:从内置的link_to URL,路径出现在耙路线
resources :project_associations, :only => [:update]
耙路线
project_association PUT /project_associations/:id(.:format) {:action=>"update", :controller=>"project_associations"}
ERB
<%= link_to membership_command[:text], project_association_path(membership_command[:id], :command => membership_command[:command])%>
生成的HTML
<a href="/project_associations/2011?command=suspend">Suspend</a>
点击结果: 路由错误 没有路由匹配“/ project_associations/2011”
我踢了服务器,同样的结果
感谢您的任何援助。
+1踢服务器作为调试过程 – numbers1311407