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