0
路由錯誤我已經在我的路線文件下列導軌上的有效途徑
rake routes | grep stop
stop_timelog POST /timelogs/:id/stop(.:format) {:action=>"stop", :controller=>"timelogs"}
然而,張貼到一個請求時我看到的網址:
Started POST "/timelogs/325/stop" for 188.220.17.64 at Wed Nov 24 02:22:22 -0800 2010
ActionController::RoutingError (No route matches "/timelogs/325/stop"):
所有這些看起來應該可以工作,但事實並非如此。這裏可能是什麼問題?
你有沒有想過這個?我有同樣的問題:http://stackoverflow.com/questions/5081153/rails-routing-what-am-i-missing – 2011-02-22 17:12:42