Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为“api”的单独应用程序,我想从我的管理应用程序链接到它。但如果我做一个像这样的链接:
%td=button_to "API", url("/api/users", :attributes, :id => user.id), :method => :get, :class => :button_to
它带我到 /admin/api/users,我想去 api/users/attributes。
不确定我是否理解,但如果您在 App2 中并且想要呈现来自另一个应用程序的链接,您可以:Api.url(:users, :attributes, :id => user.id)
Api.url(:users, :attributes, :id => user.id)