ActionController::MimeResponds::Collector
class ActionController::MimeResponds::Collector
A container for responses available from the current controller for requests for different mime-types sent to a particular action.
The public controller methods respond_to
may be called with a block that is used to define responses to different mime-types, e.g. for respond_to
:
respond_to do |format| format.html format.xml { render xml: @people } end
In this usage, the argument passed to the block (format
above) is an instance of the 登录查看完整内容