ruby-on-rails-3 – 简单的Rails 3路由失败 – 没有路由匹配
发布时间:2020-12-17 03:27:20 所属栏目:百科 来源:网络整理
导读:在我的config / routes.rb中,我有: post "portal_plan_document/update" rake路线证实了这一点: $rake routesportal_plan_document_update POST /portal_plan_document/update(.:format) {:controller="portal_plan_document",:action="update"}.... 在我
在我的config / routes.rb中,我有:
post "portal_plan_document/update" rake路线证实了这一点: $rake routes portal_plan_document_update POST /portal_plan_document/update(.:format) {:controller=>"portal_plan_document",:action=>"update"} .... 在我的代码中,我有: <%= form_for @plan_doc,:url => portal_plan_document_update_path,:method => "POST",:remote => true do |f| %> 在我的日志文件中,我看到: Started POST "/portal_plan_document/update" for 127.0.0.1 at 2011-03-31 18:04:37 -0400 ActionController::RoutingError (No route matches "/portal_plan_document/update"): 我迷失了,因为从这里做了什么.任何帮助将不胜感激! 我应该声明我使用的是Ruby 1.9.2和Rails 3.0.5.哦,我在更新routes.rb后重新启动了服务器(WebBrick w / rails服务器). 杰里米 解决方法
弄清楚了! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |