我的應用程序是基於關子域名,如:Rails的路由更新,而不會員ID
http://mylawfirm.resispsalaw.com
我需要以下網址是對當前公司資源PUT。我在我的路線如下:
...
constraints(Subdomain) do
scope "/firm/" do
put '/', action: :update, controller: :firm, as: "firm"
...
但是,當我在我的觀點得到firm_path(@firm)
我得到如下:
/firm.test1
我怎樣才能獲得firm_path(@firm)
返回:
/firm
rake routes
返回以下內容:
...
firm PUT /firm(.:format) firm#update
...
如何鏈接到它在你看來?只使用'firm_path'?還有什麼是'rake routes'的相關輸出? – 2012-03-04 00:14:48
更新後的相關耙路線 – 2012-03-04 00:18:50