我使用的ActionController ::金属on Rails的4.1.6这样的API控制器: class Api < ActionController::Metal
include AbstractController::Rendering
include ActionController::ImplicitRender
include ActionContro
如果我定义的路径的模块内,像这样: class DrivenSignupPlugin::AccountController < ApplicationController
...
end
然后所有的呼叫,url_for(包括redirect_to)的内部,将前缀:controller参数与driven_signup_plugin/。 这不是所期望的行为,因为此控制器在其外部使用许多