Flowdock
method

format

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActionController::AbstractRequest
format() public

Returns the Mime type for the format used in the request. If there is no format available, the first of the accept types will be used. Examples:

  GET /posts/5.xml   | request.format => Mime::XML
  GET /posts/5.xhtml | request.format => Mime::HTML
  GET /posts/5       | request.format => request.accepts.first (usually Mime::HTML for browsers)
Show source
Register or log in to add new notes.