我有一个应用程序,App2
我使用.POST
App1
ActiveResource
上App1
,我有
module App2
class Iteeem # Purposely misspelled here
def self.edit_item
self.prefix "/api/editing_item/"
post :item, {:property => {:value => 5665}}
end
end
end
它击中
http://app2.mydomain.com/api/editing_item/iteeems/item.xml
(现在你知道我为什么拼错了吧)
但我希望它击中
http://app2.mydomain.com/api/editing_item/item.xml
请指教。