У меня есть следующие маршруты:
people GET /people(.:format) {:action=>"index", :controller=>"people"}
POST /people(.:format) {:action=>"create", :controller=>"people"}
new_person GET /people/new(.:format) {:action=>"new", :controller=>"people"}
edit_person GET /people/:id/edit(.:format) {:action=>"edit", :controller=>"people"}
person GET /people/:id(.:format) {:action=>"show", :controller=>"people"}
**PUT /people/:id(.:format) {:action=>"update", :controller=>"people"}**
DELETE /people/:id(.:format) {:action=>"destroy", :controller=>"people"}
Однако, когда мой клиент Flex запрашивает обновление с
" **<mx:HTTPService id = "update"
url='http://localhost:3000/people/{grid.selectedItem.id}.xml?_method=put**"
, я получаю сообщение об ошибке
**ActionController::RoutingError (No route matches "/people/1.xml"**.
Дажекогда я явно (для устранения неполадок) преобразовываю строку в **url='http://localhost:3000/people/1.xml?_method=put"
, ошибка сохраняется. *
Я могу без ошибок набрать "http://localhost:3000/people/1.xml"
в адресной строке.
Что я делаю неправильно?Заранее спасибо.