我有两个应用程序。一个具有以下路线的应用程序:
namespace :api do
namespace :v1 do
resources :things
end
end
和我希望通过ActiverEsource连接到它的另一个。
使用ActiverSource连接到第一个应用程序的api/v1/things
路由的正确方法是什么?
现在看起来很像我必须实现custic_method_collection_url,但这感觉就像是一个黑客 - 这是唯一的方法吗?
最后,我实现了 custom_method_collection_url
。没有更好的方法可以辨别。