Flowdock
method

format

Importance_1
v3.0.9 - Show latest stable - 0 notes - Class: ActionDispatch::Http::MimeNegotiation
format(view_path = []) public

Returns the MIME type for the format used in the request.

GET /posts/5.xml   | request.format => Mime::XML
GET /posts/5.xhtml | request.format => Mime::HTML
GET /posts/5       | request.format => Mime::HTML or MIME::JS, or request.accepts.first
Show source
Register or log in to add new notes.