This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
template_format()
public
Returns a symbolized version of the :format
parameter of the request. If no \format is given
it returns :jsfor Ajax requests and :html otherwise.
# File actionpack/lib/action_controller/request.rb, line 177
def template_format
parameter_format = parameters[:format]
if parameter_format
parameter_format
elsif xhr?
:js
else
:html
end
end