class ActionController::Responder
def to_format
responds to :to_format and display it.
template, if the template is not available, we verify if the resource
All other formats follow the procedure below. First we try to render a
def to_format default_render rescue ActionView::MissingTemplate => e api_behavior(e) end