更新时间:2023-11-09 09:58:52
使用显式方法创建响应器(并使用较新的 respond_with
)可能会有所帮助:
What might help is to create a responder (and use the newer respond_with
) with the explicit method:
class ActionController::Responder
def to_my_custom_renderer
controller.render :my_custom_renderer => controller.action_name
end
end