在我的 ApplicationController 我有这个:
def prepend_view_paths
prepend_view_path "app/views/#{request.subdomain}_subdomain" if request.subdomain.present?
end
我想要这样的东西:
def prepend_view_paths
prepend_view_path "app/views/#{current namespace }_namespace" if there is a current namespace
end