class ActionController::Responder
def respond
Main entry point for responder responsible to dispatch to the proper format.
def respond method = "to_#{format}" respond_to?(method) ? send(method) : to_format end
def respond method = "to_#{format}" respond_to?(method) ? send(method) : to_format end