Flowdock
method

template_format

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActionView::Base
template_format() public

Returns a symbolized version of the :format parameter of the request, or :html by default.

EXCEPTION: If the :format parameter is not set, the Accept header will be examined for whether it contains the JavaScript mime type as its first priority. If that’s the case, it will be used. This ensures that Ajax applications can use the same URL to support both JavaScript and non-JavaScript users.

Show source
Register or log in to add new notes.