В моем config / routes.rb у меня есть:
post "portal_plan_document/update"
rake routes подтверждают это:
$ 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. О, я перезапустил сервер (сервер WebBrick с рельсами) после обновления routes.rb.
Джереми